Skip to content

Commit

Permalink
Refactor CSP's values
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Jan 5, 2025
1 parent 7bdd5b1 commit f9dfda8
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,22 @@
"security": {
"assetProtocol": {
"enable": true,
"scope": ["**/*"]
"scope": {
"allow": ["**/*"]
}
},
"csp": "default-src 'none'; img-src 'self' asset: https://asset.localhost http://asset.localhost data: ; media-src 'self' blob: asset: https://asset.localhost http://asset.localhost; child-src 'self'; object-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; connect-src ipc: asset: https://asset.localhost http://asset.localhost http://ipc.localhost 'self' https://api.github.com; font-src 'self' data:"
"pattern": {
"use": "brownfield"
},
"csp": {
"default-src": "'self' asset: http://asset.localhost",
"connect-src": "'self' asset: http://asset.localhost blob: ipc: http://ipc.localhost https://api.github.com",
"img-src": "'self' asset: http://asset.localhost data:",
"media-src": "'self' asset: http://asset.localhost blob: data:",
"child-src": "'self'; object-src 'self'",
"font-src": "'self' data:",
"style-src": "'self' 'unsafe-inline'"
}
}
},
"bundle": {
Expand Down

0 comments on commit f9dfda8

Please sign in to comment.