lighthouse 13.6.0-dev.20261117 → 13.6.0-dev.20261118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,8 +58,11 @@ class OriginIsolation extends Audit {
|
|
|
58
58
|
})
|
|
59
59
|
.flatMap(h => h.value);
|
|
60
60
|
|
|
61
|
-
//
|
|
62
|
-
|
|
61
|
+
// COOP is a Structured Field item: the policy token can be followed by parameters such as
|
|
62
|
+
// `report-to`, which don't change the policy (e.g. `same-origin; report-to="coop"`).
|
|
63
|
+
// https://html.spec.whatwg.org/multipage/browsers.html#obtain-coop
|
|
64
|
+
// Sanitize the header value and ignore any parameters.
|
|
65
|
+
coopHeaders = coopHeaders.map(v => v.split(';')[0].toLowerCase().replace(/\s/g, ''));
|
|
63
66
|
|
|
64
67
|
return coopHeaders;
|
|
65
68
|
}
|
package/package.json
CHANGED