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:
叁月柒
2026-06-15 15:11:24 +08:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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"
+3
View File
@@ -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]