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,6 +1,6 @@
{
"name": "vyla-home",
"version": "1.1.23",
"version": "1.1.24",
"description": "Vyla Home Desktop App Launcher",
"main": "main.js",
"scripts": {
@@ -54,4 +54,4 @@
"installerHeaderIcon": "build/icon.ico"
}
}
}
}

2
src-tauri/Cargo.lock generated
View File

@@ -4222,7 +4222,7 @@ dependencies = [
[[package]]
name = "vyla-home"
version = "1.1.23"
version = "1.1.24"
dependencies = [
"base64 0.22.1",
"serde",

View File

@@ -1,6 +1,6 @@
[package]
name = "vyla-home"
version = "1.1.23"
version = "1.1.24"
description = "Vyla Home Desktop App Launcher"
edition = "2021"

21
src-tauri/Info.plist Normal file
View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsLocalNetworking</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
<key>NSIncludesSubdomains</key>
<false/>
</dict>
</dict>
</dict>
</dict>
</plist>

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": {