谷歌浏览器最新chrome94版本CORS跨域问题

提示Access to XMLHttpRequest at 'http://localhost:xxxx/api' from origin 'http://xxx.xxx.com:xxxx' 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

修改为 Disabled  后点 Relaunch 问题解决。

谷歌浏览器最新chrome94版本CORS跨域问题_第1张图片

你可能感兴趣的:(JQuery,JS,javascript)