This commit is contained in:
ManeraKai 2022-03-24 22:05:46 +03:00
parent 6e7a27fe4c
commit 2bc2316b50
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 2 additions and 1 deletions

View File

@ -195,7 +195,8 @@ function removeXFrameOptions(e) {
];
if (!twitterList.includes(protocolHost) && e.type != 'sub_frame') return;
let isChanged = false;
for (const i in e.responseHeaders) if (e.responseHeaders[i].name = 'x-frame-options') {
console.log(e.responseHeaders);
for (const i in e.responseHeaders) if (e.responseHeaders[i].name == 'x-frame-options') {
isChanged = true;
e.responseHeaders.splice(i, 1);
}