谷歌浏览器关闭跨域限制

谷歌浏览器关闭跨域限制

报错:

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即可。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章