From 82807ecee7cd39350c071e783dd8af2884b8c278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 24 Mar 2026 10:25:27 -0600 Subject: [PATCH] Fix CSP connect-src to allow all local assets The previous entry hardcoded a Vite-generated content-hash filename (onig-CwjCXqnP.wasm), which breaks whenever the file's hash changes between builds. Replacing it with 'self' covers all same-origin assets regardless of filename. --- crates/radicle-tauri/tauri.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/radicle-tauri/tauri.conf.json b/crates/radicle-tauri/tauri.conf.json index 45d09a900..12d549127 100644 --- a/crates/radicle-tauri/tauri.conf.json +++ b/crates/radicle-tauri/tauri.conf.json @@ -22,7 +22,7 @@ "security": { "csp": { "default-src": "'self'", - "connect-src": "ipc: http://ipc.localhost https://files.radicle.xyz tauri://localhost/assets/onig-CwjCXqnP.wasm", + "connect-src": "'self' ipc: http://ipc.localhost https://files.radicle.xyz", "img-src": "'self' blob: data: https:", "script-src": "'wasm-unsafe-eval'", "style-src": "'unsafe-inline' 'self'"