天博·体育「中国」官方网站/登录入口-IOS/安卓通用版/手机APP下载
«

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

时间:2022-3-2 11:04     作者:一行虎     分类: 其他


谷歌浏览器最新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 重启。

标签: 其他