Block insecure private network r

2023-01-16  本文已影响0人  Mr老朝

复现问题

发送请求到 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

image.png

参考资料

Private Network Access

上一篇 下一篇

猜你喜欢

热点阅读