using tauri http api run plugin to fixed cors in App

This commit is contained in:
lloydzhou
2024-09-04 21:04:13 +08:00
parent 04e1ab63bb
commit f9a047aad4
9 changed files with 75 additions and 20 deletions

View File

@@ -17,7 +17,7 @@ tauri-build = { version = "1.5.1", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.5.4", features = [
tauri = { version = "1.5.4", features = [ "http-all",
"notification-all",
"fs-all",
"clipboard-all",

View File

@@ -50,6 +50,11 @@
},
"notification": {
"all": true
},
"http": {
"all": true,
"request": true,
"scope": ["https://*", "http://*"]
}
},
"bundle": {