Forráskód Böngészése

chore: Content-Security-Policy

dongchengjie 1 éve
szülő
commit
cade35fe10
2 módosított fájl, 1 hozzáadás és 5 törlés
  1. 1 1
      src-tauri/tauri.conf.json
  2. 0 4
      src/index.html

+ 1 - 1
src-tauri/tauri.conf.json

@@ -75,7 +75,7 @@
     },
     "windows": [],
     "security": {
-      "csp": "script-src 'unsafe-eval' 'self'; default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self'; img-src asset: http: https: data: 'self';"
+      "csp": "default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self';"
     }
   }
 }

+ 0 - 4
src/index.html

@@ -8,10 +8,6 @@
       type="image/x-icon"
     />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta
-      http-equiv="Content-Security-Policy"
-      content="default-src * 'unsafe-inline' 'unsafe-eval' data: blob:;"
-    />
     <title>Clash Verge</title>
   </head>
   <body>