Move /e2e -> /e2e-tests
Этот коммит содержится в:
@@ -0,0 +1,21 @@
|
||||
/* eslint-disable header/header */
|
||||
|
||||
// taken from https://github.com/guilryder/chrome-extensions/tree/master/xframe_ignore
|
||||
|
||||
/*global chrome*/
|
||||
|
||||
var HEADERS_TO_STRIP_LOWERCASE = [
|
||||
'content-security-policy',
|
||||
'x-frame-options',
|
||||
];
|
||||
|
||||
chrome.webRequest.onHeadersReceived.addListener(
|
||||
(details) => {
|
||||
return {
|
||||
responseHeaders: details.responseHeaders.filter((header) => {
|
||||
return HEADERS_TO_STRIP_LOWERCASE.indexOf(header.name.toLowerCase()) < 0;
|
||||
}),
|
||||
};
|
||||
}, {
|
||||
urls: ['<all_urls>'],
|
||||
}, ['blocking', 'responseHeaders']);
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"update_url": "https://clients2.google.com/service/update2/crx",
|
||||
"manifest_version": 2,
|
||||
"name": "Ignore X-Frame headers",
|
||||
"description": "Drops X-Frame-Options and Content-Security-Policy HTTP response headers, allowing all pages to be iframed.",
|
||||
"version": "1.1",
|
||||
"background": {
|
||||
"scripts": [
|
||||
"background.js"
|
||||
]
|
||||
},
|
||||
"permissions": [
|
||||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
]
|
||||
}
|
||||
Ссылка в новой задаче
Block a user