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 <noreply@anthropic.com>
这个提交存在于:
父节点
def5e92802
当前提交
78f03e378e
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -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": {
|
||||
|
|
|
|||
正在加载…
添加表格
在新工单中引用