-
-
Notifications
You must be signed in to change notification settings - Fork 217
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- 问题现象:
- 直连某第三方 Claude API 成功。
- 同参数经 Cloudflare Tunnel -> CCH 调用失败,CCH 日志出现上游
418 I'm a Teapot+Access Denied。
- 根因:
- CCH 透传了 Cloudflare 入口头
cf-warp-tag-id(以及可能的cdn-loop)到上游。 - 某些第三方网关/WAF会将该类头视为异常流量并拒绝(418)。
- 排查结论与修复:
- 已确认:去掉
cf-warp-tag-id后同请求恢复 200。 - 代码侧建议:在 CCH header 黑名单中增加过滤
cf-warp-tag-id、cdn-loop。(src/app/v1/_lib/headers.ts)
const defaultBlacklist = [
...
// CDN/云服务商特定头
...
"cf-warp-tag-id", // Cloudflare WARP 标识(透传到上游可能触发风控/拦截)
"cdn-loop", // CDN 回环检测头(仅入口 CDN 使用,不应透传)
...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Projects
Status
Backlog