allow localhost subresource loads in WKWebView

This commit is contained in:
2026-09-04 22:52:34 -07:00
parent 9229f0c2dd
commit fc49bb93a7
5 changed files with 43 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Vyla Home",
"version": "1.1.23",
"version": "1.1.24",
"identifier": "com.vyla.home",
"build": {
"frontendDist": "../ui"
@@ -9,7 +9,21 @@
"app": {
"withGlobalTauri": true,
"security": {
"csp": null
"csp": "default-src 'self' http://localhost:4890 http://127.0.0.1:4890; script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:4890 http://127.0.0.1:4890 https://esm.sh; style-src 'self' 'unsafe-inline' http://localhost:4890 http://127.0.0.1:4890; img-src 'self' data: https: http://localhost:4890 http://127.0.0.1:4890; font-src 'self' data: http://localhost:4890 http://127.0.0.1:4890; connect-src 'self' http://localhost: http://127.0.0.1:",
"dangerousRemotedomainIpcAccess": [
{
"domain": "localhost",
"windows": [
"main"
],
"enableTauriApi": true,
"plugins": [
"shell",
"process",
"opener"
]
}
]
}
},
"bundle": {
@@ -23,7 +37,8 @@
"icons/icon.ico"
],
"macOS": {
"exceptionDomain": "localhost"
"exceptionDomain": "localhost",
"infoPlist": "../Info.plist"
},
"windows": {
"webviewInstallMode": {