谷歌浏览器关闭跨域限制

谷歌浏览器关闭跨域限制

报错:

Access to XMLHttpRequest at 'http://10.1.1.1:8080/web-api/login' from origin 'http://xxx.com' has been blocked by CORS policy:
The request client is not a secure context and the resource is in more-private address space private

在浏览器地址栏输入

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

按照下图将Block insecure private network requests.项的Default改为Disabled即可。

 

posted @ 2022-08-03 16:21  莫小龙  阅读(5931)  评论(0编辑  收藏  举报