From 624d82931b398544f85baa9d1f35424c929f5639 Mon Sep 17 00:00:00 2001 From: itsamejms Date: Sun, 6 Sep 2026 23:26:25 +0100 Subject: [PATCH] fix: set minimal CSP instead of null All LLM/image HTTP goes through Rust (reqwest), so the webview needs almost nothing: self for assets, data: for generated-image URLs, inline styles (Vite dev + style attrs), and ws to the Vite dev server for HMR. Verify on next dev run. --- src-tauri/tauri.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 9d3229c..12e73ed 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -23,7 +23,7 @@ } ], "security": { - "csp": null + "csp": "default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'; connect-src 'self' ipc: http://ipc.localhost ws://localhost:5173" } }, "bundle": {