瀏覽代碼

[edit][rule]

zhangwei 2 年之前
父節點
當前提交
03ba4456d1
共有 1 個文件被更改,包括 9 次插入3 次删除
  1. 9 3
      src/rules/rules_1.json

+ 9 - 3
src/rules/rules_1.json

@@ -1,15 +1,14 @@
 [
     {
         "id": 1,
-        "condition": {
-        },
+        "condition": {},
         "action": {
             "type": "modifyHeaders",
             "responseHeaders": [
                 {
                     "header": "X-Frame-Options",
                     "operation": "remove"
-                },        
+                },
                 {
                     "header": "Frame-Options",
                     "operation": "remove"
@@ -18,6 +17,13 @@
                     "header": "content-security-policy",
                     "operation": "remove"
                 }
+            ],
+            "requestHeader": [
+                {
+                    "header": "sec-fetch-dest",
+                    "operation": "set",
+                    "value": "document"
+                }
             ]
         }
     }