fix: CORS 白名单支持 tauri://localhost——修复桌面工具设备列表 Load failed

This commit is contained in:
Logan.Li committed 2026-09-14 22:00:08 +08:00
1 parent 44387835e1
commit 30b87dec62
2 files changed
+17 -17

No files matched your search

+1
View File
@@ -106,6 +106,7 @@ func defaultCORSOrigins() []string {
"http://127.0.0.1:1420",
"http://tauri.localhost",
"https://tauri.localhost",
"tauri://localhost", // macOS Tauri WebView 实际 Origin // Logan.Li
}
}