The request client is not a secure context and the resource is in more-private address ...
概述
新版的chrome浏览器会校验发起端的域名和访问资源的域名直接的关系,如果客户端发起域名比访问资源所在的域名更public(开放),会导致The request client is not a secure context and the resource is in more-private address …错误产生。
问题
最近使用Chrome浏览器访问公司内网某个地址时,突然报了这么个错:
The request client is not a secure context and the resource is in more-private address space private.
以前都是正常的,最新的浏览器最近有什么更新导致的。
原因
- 报错内容
- 错误原因
解决办法
在浏览器地址栏输入
chrome://flags/#block-insecure-private-network-requests
按照下图将Block insecure private network requests.项的Default改为Disabled即可。
参考
Chrome浏览器:The request client is not a secure context and the resource is in more-private address …