fix(tauri): bypass WebView CORS for packaged R2/S3 apps
Preserve aws4fetch Request headers in the shell fetch interceptor, and proxy cross-origin HTTP through a native reqwest command so Windows/Android builds work even when remote CORS only allows web origins.
This commit is contained in:
4
template/src-tauri/permissions/proxy-fetch.toml
Normal file
4
template/src-tauri/permissions/proxy-fetch.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
[[permission]]
|
||||
identifier = "allow-proxy-fetch"
|
||||
description = "Allow the app webview to perform native HTTP requests (CORS bypass for packaged sites)."
|
||||
commands.allow = ["proxy_fetch"]
|
||||
Reference in New Issue
Block a user