rocsy【已解决】Claude Code WebFetch 调用失败问题 - skipWebFetchPreflight 配置 中发帖

问题背景
最近在使用 Claude Code 的 WebFetch 功能时,一直遇到这个错误:
Unable to verify if domain xxx is safe to fetch. This may be due to network restrictions or enterprise security policies blocking claude.ai.

不管是抓 Wikipedia、Hacker News 还是普通网站都不行,看到 佬友的帖子 也遇到了同样的问题,即使开了代理、配置了 Clash TUN 模式都不行。
原因分析
翻了下 GitHub,在 Issue #6388 找到了根本原因:
WebFetch 在抓取目标网站之前,会先调用 https://claude.ai/api/web/domain_info?domain= 做安全验证。如果你的网络环境...