Skip to content

Instantly share code, notes, and snippets.

Avatar
🐝
Busy bee, improving my code every day.

Kryštof Woldřich krystofwoldrich

🐝
Busy bee, improving my code every day.
View GitHub Profile
View background.js
chrome.webRequest.onHeadersReceived.addListener(
function (details) {
for (var i = 0; i < details.responseHeaders.length; ++i) {
if (details.responseHeaders[i].name.toLowerCase() == 'x-frame-options') {
details.responseHeaders.splice(i, 1);
return {
responseHeaders: details.responseHeaders
};
}
}