mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
fix csp unrestricter
This commit is contained in:
parent
19d02f69de
commit
fa9049c7b2
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ const unstrictCSP = (): void => {
|
||||||
if (!responseHeaders) return done({});
|
if (!responseHeaders) return done({});
|
||||||
|
|
||||||
if (resourceType === "mainFrame") {
|
if (resourceType === "mainFrame") {
|
||||||
delete responseHeaders["content-security-policy"];
|
delete responseHeaders["Content-Security-Policy"];
|
||||||
} else if (resourceType === "stylesheet") {
|
} else if (resourceType === "stylesheet") {
|
||||||
// Fix hosts that don't properly set the css content type, such as
|
// Fix hosts that don't properly set the css content type, such as
|
||||||
// raw.githubusercontent.com
|
// raw.githubusercontent.com
|
||||||
|
|
Loading…
Reference in a new issue