From 03a845f2b3e94f0c675bde74dc86cf1971dbd368 Mon Sep 17 00:00:00 2001 From: dongchengjie <37543964+dongchengjie@users.noreply.github.com> Date: Wed, 29 May 2024 10:20:56 +0800 Subject: [PATCH] chore: Content-Security-Policy --- src-tauri/tauri.conf.json | 2 +- src/index.html | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3b909b7b..6ad011d4 100644 --- a/src-tauri/tauri.conf.json +++ b/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';" } } } diff --git a/src/index.html b/src/index.html index 11136cfe..d5f6b515 100644 --- a/src/index.html +++ b/src/index.html @@ -8,10 +8,6 @@ type="image/x-icon" /> -