Skip to content

Commit b61c012

Browse files
committed
Allow blob: URLs in img-src CSP directive
1 parent 291e394 commit b61c012

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"app": {
1313
"macOSPrivateApi": true,
1414
"security": {
15-
"csp": "default-src 'self' ws: ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost data:; media-src 'self' asset: http://asset.localhost; script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'",
15+
"csp": "default-src 'self' ws: ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost blob: data:; media-src 'self' asset: http://asset.localhost; script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'",
1616
"assetProtocol": {
1717
"enable": true,
1818
"scope": [

0 commit comments

Comments
 (0)