mirror of
https://github.com/ZSCGR/CloudFlare-ImgBed.git
synced 2026-08-13 04:03:42 +08:00
Merge pull request #589 from yulei666/chore/webdav-522-global-fetch-flag
Enable global_fetch_strictly_public to fix WebDAV 522 (Worker deploy)
This commit is contained in:
@@ -23,6 +23,7 @@ const name = env.WORKER_NAME || 'cloudflare-imgbed';
|
||||
let toml = `name = "${name}"
|
||||
main = "index.js"
|
||||
compatibility_date = "2024-08-21"
|
||||
compatibility_flags = ["global_fetch_strictly_public"]
|
||||
|
||||
[assets]
|
||||
directory = "../../frontend-dist"
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
name = "cloudflare-imgbed"
|
||||
main = "index.js"
|
||||
compatibility_date = "2024-08-21"
|
||||
# 让 Worker 对自身 zone 的 fetch() 走公网前门(否则同域自调用绕过 Worker
|
||||
# 直连 origin,没有 origin 时会秒回 522)。修复 WebDAV 列目录/上传/下载/删除。
|
||||
compatibility_flags = ["global_fetch_strictly_public"]
|
||||
|
||||
# 静态资源(前端文件)
|
||||
[assets]
|
||||
|
||||
Reference in New Issue
Block a user