HISUI
使用Chrome94登录iMedical一直提示
2021年11月05日 16时28分

使用Chrome94登录iMedical一直提示下载医为客户端

最近使用chrome访问iMedical系统时,一直提示下载医为客户端。使用开发工具调试,Chrome报错如下:

Access to XMLHttpRequest at 'http://localhost:xxxxx/websys/mgr/mgr' from origin 'http://xxx.xxx.xxx.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`.

不允许跨域访问,但以前是可以的。
原因
查看Chrome日志发现,最新的谷歌和edge升级到94版本后对公网上的http请求下的非同域的http请求进行了拦截。也就是说局域网服务器不受影响,但公网环境下服务都需求升到https才可以跨域。
解决办法
第一种,公网上的HTTP服务升级成HTTPS服务,即可永久解决此问题。
第二种,本地开发环境修改Chrome的配置。

打开浏览器,进入chrome://flags/页面
搜索Block insecure private network requests
设置为Disabled,Relaunch就好了。

上一篇: 下一篇:

这是一个默认的广告位。

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

访问量: 702333