mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
15 lines
405 B
JavaScript
15 lines
405 B
JavaScript
const { session } = require("electron");
|
|
|
|
session.defaultSession.webRequest.onHeadersReceived.addListener(
|
|
(h) => {
|
|
h.responseHeaders.forEach((e, i) => {
|
|
if (e.name.toLowerCase() === "content-security-policy") {
|
|
e.value = "";
|
|
}
|
|
});
|
|
return { responseHeaders: h.responseHeaders };
|
|
},
|
|
{ urls: ["*://*.discord.com/*"] },
|
|
["blocking", "responseHeaders"]
|
|
);
|
|
//csp thingz
|