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.
This commit is contained in:
Rūdolfs Ošiņš
2026-04-15 15:11:05 +02:00
parent c74b8e014e
commit 82807ecee7
+1 -1
View File
@@ -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'"