From 78f03e378e10ab977367e9f82b7a6608707469fd Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Sun, 26 Jul 2026 22:28:35 +0800 Subject: [PATCH] fix(tauri): allow blob images in production csp Attachment images are rendered from `URL.createObjectURL`, but the production CSP `img-src` list had no `blob:` entry. Development does not inject a CSP, so this only broke release builds. Refs P1-14 / F-04. Co-Authored-By: Claude Opus 5 --- 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 e0d473f..ba35737 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -42,7 +42,7 @@ } ], "security": { - "csp": "default-src \u0027self\u0027; connect-src ipc: http://ipc.localhost http://127.0.0.1:*; img-src \u0027self\u0027 asset: http://asset.localhost data:; style-src \u0027self\u0027 \u0027unsafe-inline\u0027; script-src \u0027self\u0027" + "csp": "default-src \u0027self\u0027; connect-src ipc: http://ipc.localhost http://127.0.0.1:*; img-src \u0027self\u0027 asset: http://asset.localhost data: blob:; style-src \u0027self\u0027 \u0027unsafe-inline\u0027; script-src \u0027self\u0027" } }, "bundle": {