Skip to content

Commit ab5ca24

Browse files
authored
fix: correct csp setting (#974)
1 parent c593b07 commit ab5ca24

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src-tauri/tauri.conf.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@
8181
}
8282
],
8383
"security": {
84-
"csp": "default-src blob: data: filesystem: ws: wss: http://127.0.0.1:* http://localhost:* 'unsafe-inline' 'unsafe-eval';",
84+
"csp": {
85+
"default-src": "'self' asset: http://127.0.0.1:* https://at.alicdn.com ipc: http://ipc.localhost http://asset.localhost blob: data:"
86+
},
8587
"dangerousDisableAssetCspModification": true,
8688
"assetProtocol": {
8789
"enable": true,
@@ -144,4 +146,4 @@
144146
},
145147
"os": {}
146148
}
147-
}
149+
}

0 commit comments

Comments
 (0)