The request client is not a secure context and the resource is in more-private address space `privat

Chrome跨域问题:
has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space private

 

 

问题原因:
公网资源(访问者) 访问 私网资源(被访问者)

解决方案:
1:两种资源都改成 https
2.在浏览器中直接执行chrome://flags/#block-insecure-private-network-requests ,选中Disabled ,relaunch 后就可以恢复正常了。

 

 重启浏览器,问题解决!!!

posted @ 2023-02-28 10:16  喆星高照  阅读(2900)  评论(0)    收藏  举报