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(
|
return Object.assign(
|
||||||
new CapsCSP(new NetCSP(
|
new CapsCSP(new NetCSP(
|
||||||
reportURI ? `report-uri ${reportURI};` : marker
|
reportURI ? `report-uri ${reportURI}` : marker
|
||||||
)),
|
)),
|
||||||
{
|
{
|
||||||
reportURI,
|
reportURI,
|
||||||
|
|
|
@ -19,7 +19,7 @@ class NetCSP extends CSP {
|
||||||
}
|
}
|
||||||
|
|
||||||
build(...directives) {
|
build(...directives) {
|
||||||
return `${this.start}${super.build(...directives)}`;
|
return `${this.start};${super.build(...directives)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup(headers) {
|
cleanup(headers) {
|
||||||
|
|
Loading…
Reference in New Issue