Chrome访问网站跨域报错,换其他浏览器正常

参考:https://blog.csdn.net/Scoful/article/details/122278343
使用chrome访问网站(非本地服务),浏览器控制台报错如下:

The request client is not a secure context and the resource is in more-private address space `xxx`

解决方法

1.chrome地址栏输入

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

2.按enter进入 Experiments 页面,禁用 Block insecure private network requests.(选择 disabled)
3.重启浏览器

完成

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×