首页 其他 正文
  • 本文约357字,阅读需2分钟
  • 1690
  • 0

解决谷歌浏览器最新chrome94+版本CORS跨域问题 has been blocked by CORS policy

摘要

关于Chrome跨域Therequestclientisnotasecurexxx相关提示的解决

谷歌浏览器最新chrome94版本后,提示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.

解决办法:

1、打开浏览器,输入chrome://flags/ 到地址栏,敲回车
2、搜索 Block insecure private network requests
3、设置 Disabled 后,点击 Relaunch 重启浏览器即可。

PS: 设置为Disabled,必须要点击 Relaunch 重启。

标签:其他

扫描二维码,在手机上阅读
评论
博主关闭了评论
友情链接