mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
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:
@@ -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'"
|
||||
|
||||
Reference in New Issue
Block a user