fix csp unrestricter

This commit is contained in:
smartfridge 2023-11-10 20:34:50 +01:00 committed by GitHub
parent 19d02f69de
commit fa9049c7b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ const unstrictCSP = (): void => {
if (!responseHeaders) return done({});
if (resourceType === "mainFrame") {
delete responseHeaders["content-security-policy"];
delete responseHeaders["Content-Security-Policy"];
} else if (resourceType === "stylesheet") {
// Fix hosts that don't properly set the css content type, such as
// raw.githubusercontent.com