美文网首页
解决谷歌浏览器最新chrome94版本CORS跨域问题

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

作者: felixfeihu | 来源:发表于2023-01-15 11:31 被阅读0次

CORS跨域问题:

升级谷歌浏览器最新chrome94版本后,提示Access to XMLHttpRequest at http://localhost:xxxx/api from origin http://xxx.xxx.com:xxx has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.

v2-817a18249df779145eda3b96862436e4_r.png
解决办法:
打开浏览器,复制 chrome://flags/到浏览器地址栏
搜索Block insecure private network requests,将设置为Disabled,然后Relaunch就好了。
微信图片_20230116113125.png

相关文章

网友评论

      本文标题:解决谷歌浏览器最新chrome94版本CORS跨域问题

      本文链接:https://www.haomeiwen.com/subject/qwcacdtx.html