Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Fix CSP connect-src to allow all local assets
Merged rudolfs opened 1 month ago

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.

lint unit-test e2e 👉 Workflow runs 👉 Branch on GitHub

1 file changed +1 -1 c74b8e01 82807ece
modified 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'"