Skip to content

Commit

Permalink
Improve CSP definition
Browse files Browse the repository at this point in the history
Taking some inspiration from https://v2.tauri.app/security/csp/ to make
the CSP definition more permissive, so our app builds as expected.
  • Loading branch information
sebastinez committed Aug 15, 2024
1 parent 1595445 commit bdbdde9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
],
"security": {
"csp": {
"default-src": "'self'"
"default-src": "'self'",
"connect-src": "ipc: http://ipc.localhost",
"img-src": "'self' asset: http://asset.localhost blob: data:",
"style-src": "'unsafe-inline' 'self'"
},
"pattern": {
"use": "isolation",
Expand Down

0 comments on commit bdbdde9

Please sign in to comment.