Skip to content

Commit 4d18298

Browse files
committed
Fixed regression breaking network-based CSP injection.
1 parent fd7c5b0 commit 4d18298

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/bg/ReportingCSP.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function ReportingCSP(marker, reportURI = "") {
77

88
return Object.assign(
99
new CapsCSP(new NetCSP(
10-
reportURI ? `report-uri ${reportURI};` : marker
10+
reportURI ? `report-uri ${reportURI}` : marker
1111
)),
1212
{
1313
reportURI,

src/lib/NetCSP.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class NetCSP extends CSP {
1919
}
2020

2121
build(...directives) {
22-
return `${this.start}${super.build(...directives)}`;
22+
return `${this.start};${super.build(...directives)}`;
2323
}
2424

2525
cleanup(headers) {

0 commit comments

Comments
 (0)