不安全的私有网络访问
chrome更新到94之后,会自动阻止发送不安全的 内网 请求(参考资料)
复现问题
从 微盟 发送请求到 http://localhost:8009 的时候,就会被阻止,并且报这样的错: net::ERR_FAILED(ERR_FAILED)(How to fix Chrome block your insecure private network requests)
报错如下
Access to fetch at ‘…’ from origin ‘’ has been blocked by CORS policy:The request client is not a secure context and the resource is in more-private address space ‘local’
解决方法
1、浏览器访问地址
chrome://flags/#block-insecure-private-network-requests
2、找到Block insecure private network requests
并设置为Disabled
3、重启浏览器