mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
11 lines
295 B
JavaScript
11 lines
295 B
JavaScript
|
chrome.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']
|
||
|
)
|