Skip to content

Commit

Permalink
fix: csp configuraion (#124)
Browse files Browse the repository at this point in the history
Signed-off-by: 1111mp <The1111mp@outlook.com>
  • Loading branch information
1111mp committed Oct 11, 2024
1 parent a0ec556 commit e3374df
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 @@ -13,7 +13,10 @@
"macOSPrivateApi": true,
"windows": [],
"security": {
"csp": "default-src blob: data: filesystem: ws: wss: http: https: tauri: asset: 'unsafe-eval' 'unsafe-inline' 'self';",
"csp": {
"default-src": "blob: data: filesystem: ws: wss: http: https: tauri: asset: 'unsafe-eval' 'unsafe-inline' 'self'",
"connect-src": "ipc: http://ipc.localhost"
},
"assetProtocol": {
"enable": true,
"scope": [
Expand Down

0 comments on commit e3374df

Please sign in to comment.