Revert "fix csp unrestricter" (#525)

This reverts commit fa9049c7b2.
This commit is contained in:
BowDown097 2023-12-02 12:02:26 -07:00 committed by GitHub
parent 45ff7f4ec8
commit c8107ef588
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