Skip to content

Commit

Permalink
fix: CSP fix to allow local JS scripts to be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Jul 27, 2024
1 parent 55ccc67 commit 7cf21ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/desktop/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
"csp": {
"default-src": "'self'",
"style-src": "'self' 'unsafe-inline' *",
"script-src": "'self' 'unsafe-eval'",
"script-src": "'self' 'unsafe-eval' asset: http://asset.localhost",
"connect-src": "'self' ipc: http://ipc.localhost ws://localhost:6123",
"font-src": "'self' *",
"img-src": "'self' asset: blob: data: *"
"img-src": "'self' asset: http://asset.localhost blob: data: *"
},
"assetProtocol": {
"enable": true,
Expand Down

0 comments on commit 7cf21ba

Please sign in to comment.