Fixed typo #135
This commit is contained in:
parent
6e7a27fe4c
commit
2bc2316b50
|
@ -195,7 +195,8 @@ function removeXFrameOptions(e) {
|
||||||
];
|
];
|
||||||
if (!twitterList.includes(protocolHost) && e.type != 'sub_frame') return;
|
if (!twitterList.includes(protocolHost) && e.type != 'sub_frame') return;
|
||||||
let isChanged = false;
|
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;
|
isChanged = true;
|
||||||
e.responseHeaders.splice(i, 1);
|
e.responseHeaders.splice(i, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue