mirror of
https://github.com/RUB-NDS/passkeys.tools
synced 2026-08-09 12:17:49 +00:00
feat: add ruleset configuration for modifying response headers in rules.json
This commit is contained in:
Binary file not shown.
+12
-1
@@ -15,8 +15,19 @@
|
|||||||
"default_popup": "popup.html"
|
"default_popup": "popup.html"
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"storage"
|
"storage",
|
||||||
|
"declarativeNetRequest"
|
||||||
],
|
],
|
||||||
|
"host_permissions": [
|
||||||
|
"<all_urls>"
|
||||||
|
],
|
||||||
|
"declarative_net_request": {
|
||||||
|
"rule_resources": [{
|
||||||
|
"id": "ruleset_1",
|
||||||
|
"enabled": true,
|
||||||
|
"path": "rules.json"
|
||||||
|
}]
|
||||||
|
},
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
{
|
{
|
||||||
"resources": ["init.js", "globals.js", "helpers.js", "hooks.js"],
|
"resources": ["init.js", "globals.js", "helpers.js", "hooks.js"],
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"priority": 1,
|
||||||
|
"action": {
|
||||||
|
"type": "modifyHeaders",
|
||||||
|
"responseHeaders": [
|
||||||
|
{
|
||||||
|
"header": "cross-origin-opener-policy",
|
||||||
|
"operation": "remove"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"condition": {
|
||||||
|
"urlFilter": "*",
|
||||||
|
"resourceTypes": [
|
||||||
|
"main_frame",
|
||||||
|
"sub_frame",
|
||||||
|
"stylesheet",
|
||||||
|
"script",
|
||||||
|
"image",
|
||||||
|
"font",
|
||||||
|
"object",
|
||||||
|
"xmlhttprequest",
|
||||||
|
"ping",
|
||||||
|
"csp_report",
|
||||||
|
"media",
|
||||||
|
"websocket",
|
||||||
|
"webtransport",
|
||||||
|
"webbundle",
|
||||||
|
"other"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user