美文网首页
Block insecure private network r

Block insecure private network r

作者: Mr老朝 | 来源:发表于2023-01-16 10:22 被阅读0次

复现问题

发送请求到 http://localhost:8009 的时候,就会被阻止,并且报这样的错:
net::ERR_FAILED (ERR_FAILED)(How to fix Chrome block your insecure private network requests)

image.png

报错
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’

解决方法

  • 浏览器访问地址

chrome://flags/#block-insecure-private-network-requests

  • 设置为 Disabled
image.png
  • 重启浏览器

参考资料

Private Network Access

相关文章

网友评论

      本文标题:Block insecure private network r

      本文链接:https://www.haomeiwen.com/subject/jujzcdtx.html