Skip to content

Commit

Permalink
Enhance security policies for image and script sources
Browse files Browse the repository at this point in the history
- Update security policies in configuration to enhance protection against vulnerabilities.
- Modify resource source policies to allow fetching from new endpoints for improved functionality.
  • Loading branch information
zhongweili committed Dec 7, 2024
1 parent b04fd14 commit 73674d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
"csp": {
"default-src": "'self'",
"style-src": "'self' 'unsafe-inline'",
"img-src": "'self' asset: https://asset.localhost",
"connect-src": "'self' ipc: tauri: asset: https://asset.localhost"
"img-src": "'self' asset: https://raw.githubusercontent.com data:",
"connect-src": "'self' ipc: https://api.github.com",
"script-src": "'self'"
},
"assetProtocol": {
"enable": true,
Expand Down

0 comments on commit 73674d7

Please sign in to comment.