Skip to content

Commit

Permalink
feat: 添加 tauri_plugin_cors_fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
idootop committed Mar 23, 2024
1 parent 4cfc273 commit 853ebd3
Show file tree
Hide file tree
Showing 13 changed files with 995 additions and 517 deletions.
15 changes: 13 additions & 2 deletions packages/feiyu-desktop/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/feiyu-desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ tauri-plugin-os = "2.0.0-beta.3"
tauri-plugin-http = "2.0.0-beta.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
once_cell = "1.19.0"
tokio = { version = "1.36.0", features = ["macros"] }

tauri-plugin-cors-fetch = { git = "https://github.com/idootop/tauri-plugin-cors-fetch", rev = "336110e5b6bf9f301a81622c36d2ec1d67637a29" }

[features]
custom-protocol = ["tauri/custom-protocol"]
3 changes: 2 additions & 1 deletion packages/feiyu-desktop/src-tauri/capabilities/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"window:allow-start-dragging",
"window:allow-is-fullscreen",
"window:allow-set-fullscreen",
"os:allow-os-type"
"os:allow-os-type",
"cors-fetch:allow-cancel-cors-request"
]
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"default":{"identifier":"default","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","window:allow-close","window:allow-minimize","window:allow-toggle-maximize","window:allow-start-dragging","window:allow-is-fullscreen","window:allow-set-fullscreen","os:allow-os-type"]}}
{"default":{"identifier":"default","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["path:default","event:default","window:default","app:default","resources:default","menu:default","tray:default","window:allow-close","window:allow-minimize","window:allow-toggle-maximize","window:allow-start-dragging","window:allow-is-fullscreen","window:allow-set-fullscreen","os:allow-os-type","cors-fetch:allow-cancel-cors-request"]}}
Loading

0 comments on commit 853ebd3

Please sign in to comment.