wenliming 3 лет назад
Родитель
Сommit
970a0fc060
2 измененных файлов с 25 добавлено и 1 удалено
  1. 24 0
      src/rules/rules_1.json
  2. 1 1
      src/view/components/give-dialog.vue

+ 24 - 0
src/rules/rules_1.json

@@ -0,0 +1,24 @@
+[
+    {
+        "id": 1,
+        "condition": {
+        },
+        "action": {
+            "type": "modifyHeaders",
+            "responseHeaders": [
+                {
+                    "header": "X-Frame-Options",
+                    "operation": "remove"
+                },
+                {
+                    "header": "Frame-Options",
+                    "operation": "remove"
+                },
+                {
+                    "header": "Content-Security-Policy",
+                    "operation": "remove"
+                }
+            ]
+        }
+    }
+]

+ 1 - 1
src/view/components/give-dialog.vue

@@ -120,7 +120,7 @@ const paypalClientId = 'ASn7k0zqyS5AWYikVSfmamR-RFpjyU_QFJWSxOHHoWE04-RgHNO6nahn
 
 let publishRes = reactive({})
 
-let visible = ref(false);
+let visible = ref(true);
 let showPreview = ref(false);
 let dialogHeight = ref(620);
 let previewDialogHeight = ref(880)