diff --git a/src/bg/ReportingCSP.js b/src/bg/ReportingCSP.js index 65268b2..cf7f97b 100644 --- a/src/bg/ReportingCSP.js +++ b/src/bg/ReportingCSP.js @@ -7,7 +7,7 @@ function ReportingCSP(marker, reportURI = "") { return Object.assign( new CapsCSP(new NetCSP( - reportURI ? `report-uri ${reportURI};` : marker + reportURI ? `report-uri ${reportURI}` : marker )), { reportURI, diff --git a/src/lib/NetCSP.js b/src/lib/NetCSP.js index 01f214a..4891900 100644 --- a/src/lib/NetCSP.js +++ b/src/lib/NetCSP.js @@ -19,7 +19,7 @@ class NetCSP extends CSP { } build(...directives) { - return `${this.start}${super.build(...directives)}`; + return `${this.start};${super.build(...directives)}`; } cleanup(headers) {