From 0cab98ac319611ac0a3c970196b18a4d23b45cce Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 26 Aug 2024 12:14:51 +0200 Subject: [PATCH] Improve CSP definition for build --- src-tauri/tauri.conf.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index e777d9cb5..bcb565bfa 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -18,7 +18,10 @@ ], "security": { "csp": { - "default-src": "'self'" + "default-src": "'self'", + "connect-src": "ipc: http://ipc.localhost", + "img-src": "'self' asset: http://asset.localhost blob: data:", + "style-src": "'unsafe-inline' 'self'" }, "pattern": { "use": "isolation",