Skip to content

Instantly share code, notes, and snippets.

View VladimirMangos's full-sized avatar

Vladimir Merzliakov VladimirMangos

View GitHub Profile
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
};
}
}