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,6 +4,8 @@ compatibility_date = "2024-11-01"
|
||||
|
||||
[assets]
|
||||
directory = "./frontend/dist"
|
||||
binding = "ASSETS"
|
||||
# SPA:未匹配的前端路由(如 /jobs/:id)经 env.ASSETS.fetch 回退到 index.html
|
||||
not_found_handling = "single-page-application"
|
||||
|
||||
# 运行 `wrangler d1 create web2app` 后将输出的 database_id 替换下方占位符
|
||||
|
||||
Reference in New Issue
Block a user