Created
June 17, 2014 13:45
-
-
Save dergachev/e216b25d9a144914eae2 to your computer and use it in GitHub Desktop.
Source code for "Ignore X-Frame headers" chrome extension; see https://chrome.google.com/webstore/detail/ignore-x-frame-headers/gleekbfjekiniecknbkamfmkohkpodhe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}; | |
} | |
} | |
}, { | |
urls: ["<all_urls>"] | |
}, ["blocking", "responseHeaders"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"background": { | |
"scripts": [ "background.js" ] | |
}, | |
"description": "Drops X-Frame-Options HTTP response headers, allowing all pages to be iframed.", | |
"key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDysh7qP/8H9qUMb0R9BZbk2NDirtNgRyo9AEh9C5HFcoMELEzJ/M/sCqn/yDM/Z7GK3t+w02zCeTBknLEUwgFL9kRxVV4s1kfgbijVHTSJkII6OjqiWDPkDeyMJ1oOr156Rct2bp2MAwOf0Tk1bm2UdwNbJxoE5sQFd2Hbu+WFxQIDAQAB", | |
"manifest_version": 2, | |
"name": "Ignore X-Frame headers", | |
"permissions": [ "webRequest", "webRequestBlocking", "\u003Call_urls>" ], | |
"update_url": "http://clients2.google.com/service/update2/crx", | |
"version": "1.0" | |
} |
Hi all, i'm trying to config a new project with cypress and everything was good until i faced an issue which is :
every time i try to hit a url via cy.visit it stop with an error displayed as 404 even though the url is right
i read about this issue and kind of an issue with same origin policy i'm not sure
can anyone help me please with this issue ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Recommendations as the "Ignore X-Frame headers" Chrome extension author: