Fixed regression breaking network-based CSP injection.
This commit is contained in:
parent
fd7c5b08e9
commit
4d18298930
|
@ -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,
|
||||
|
|
|
@ -19,7 +19,7 @@ class NetCSP extends CSP {
|
|||
}
|
||||
|
||||
build(...directives) {
|
||||
return `${this.start}${super.build(...directives)}`;
|
||||
return `${this.start};${super.build(...directives)}`;
|
||||
}
|
||||
|
||||
cleanup(headers) {
|
||||
|
|
Loading…
Reference in New Issue