谷歌浏览器关闭跨域限制
谷歌浏览器关闭跨域限制
报错:
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
即可。