mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-16 22:20:51 +01:00
Restore CSP settings in tauri.conf.json
This commit is contained in:
@ -15,12 +15,47 @@
|
|||||||
{
|
{
|
||||||
"title": "haex-hub",
|
"title": "haex-hub",
|
||||||
"width": 800,
|
"width": 800,
|
||||||
"height": 600,
|
"height": 600
|
||||||
"devtools": true
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"security": {
|
"security": {
|
||||||
"csp": null,
|
"csp": {
|
||||||
|
"default-src": ["'self'", "http://tauri.localhost", "haex-extension:"],
|
||||||
|
"script-src": [
|
||||||
|
"'self'",
|
||||||
|
"http://tauri.localhost",
|
||||||
|
"haex-extension:",
|
||||||
|
"'wasm-unsafe-eval'",
|
||||||
|
"'unsafe-inline'"
|
||||||
|
],
|
||||||
|
"style-src": [
|
||||||
|
"'self'",
|
||||||
|
"http://tauri.localhost",
|
||||||
|
"haex-extension:",
|
||||||
|
"'unsafe-inline'"
|
||||||
|
],
|
||||||
|
"connect-src": [
|
||||||
|
"'self'",
|
||||||
|
"http://tauri.localhost",
|
||||||
|
"haex-extension:",
|
||||||
|
"ipc:",
|
||||||
|
"http://ipc.localhost",
|
||||||
|
"ws://localhost:*"
|
||||||
|
],
|
||||||
|
"img-src": [
|
||||||
|
"'self'",
|
||||||
|
"http://tauri.localhost",
|
||||||
|
"haex-extension:",
|
||||||
|
"data:",
|
||||||
|
"blob:"
|
||||||
|
],
|
||||||
|
"font-src": ["'self'", "http://tauri.localhost", "haex-extension:"],
|
||||||
|
"object-src": ["'none'"],
|
||||||
|
"media-src": ["'self'", "http://tauri.localhost", "haex-extension:"],
|
||||||
|
"frame-src": ["haex-extension:"],
|
||||||
|
"frame-ancestors": ["'none'"],
|
||||||
|
"base-uri": ["'self'"]
|
||||||
|
},
|
||||||
"assetProtocol": {
|
"assetProtocol": {
|
||||||
"enable": true,
|
"enable": true,
|
||||||
"scope": ["$APPDATA", "$RESOURCE"]
|
"scope": ["$APPDATA", "$RESOURCE"]
|
||||||
|
|||||||
Reference in New Issue
Block a user