Skip to content

Commit

Permalink
fix: update csp config
Browse files Browse the repository at this point in the history
  • Loading branch information
fhluo committed Sep 22, 2024
1 parent a40b791 commit 0cd9cd5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xpic-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
}
],
"security": {
"csp": "default-src 'self'; img-src 'self' asset: https://asset.localhost",
"csp": {
"default-src": "'self' customprotocol: asset:",
"connect-src": "ipc: http://ipc.localhost",
"img-src": "'self' asset: http://asset.localhost blob: data:",
"style-src": "'unsafe-inline' 'self'"
},
"assetProtocol": {
"enable": true,
"scope": [
Expand Down

0 comments on commit 0cd9cd5

Please sign in to comment.