Commit 9716c95
fix: Linux desktop app freeze caused by restrictive CSP
The Tauri CSP only allowed 'self' for script-src/default-src. After
redirecting from tauri://localhost to the Go backend at
http://127.0.0.1, the CSP blocked resources from the backend origin,
causing the WebKitGTK webview to freeze on Linux.
Add http://127.0.0.1:* to all CSP directives and include
'unsafe-inline'/'unsafe-eval' for scripts so the SPA can load and
run after navigation to the backend.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3b510d7 commit 9716c95
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments