fix: CORS 白名单支持 tauri://localhost——修复桌面工具设备列表 Load failed
This commit is contained in:
1 parent
44387835e1
commit
30b87dec62
2 files changed
+17
-17
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user