Fixed regression breaking network-based CSP injection.

This commit is contained in:
hackademix 2020-07-10 18:18:32 +02:00
parent fd7c5b08e9
commit 4d18298930
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -19,7 +19,7 @@ class NetCSP extends CSP {
}
build(...directives) {
return `${this.start}${super.build(...directives)}`;
return `${this.start};${super.build(...directives)}`;
}
cleanup(headers) {