sync update from LAN repo (source dhk-1 @ 3e87be55)

This commit is contained in:
gozeros committed 2026-10-21 15:06:08 +08:00
1 parent ab6068a7c1
commit 42f2a26fa8
1482 files changed
+227759 -9584

No files matched your search

@@ -66,6 +66,16 @@ def should_check_csrf(request: Request) -> bool:
# 双提交 Cookie 既无 token 可比、也无会话可被伪造,豁免之。
if path.startswith("/api/open/"):
return False
# b5-1 task details may be written by a non-browser integration using its
# own X-Integration-Key authentication. It has no cookie session for a
# cross-site request to ride; AuthMiddleware validates that key narrowly
# for PUT only.
if (
request.method == "PUT"
and path.startswith("/api/task-deeplink-details/")
and bool(request.headers.get("X-Integration-Key"))
):
return False
if is_coze_studio_compat_path(path):
return False
if is_weknora_embed_proxy_request(request):