首页 > 其他分享 >Chrome跨域问题:查看图片报错has been blocked by CORS policy: The request client is not a secure context and the

Chrome跨域问题:查看图片报错has been blocked by CORS policy: The request client is not a secure context and the

时间:2024-04-16 11:24:55浏览次数:30  
标签:secure space Chrome private 报错 CORS blocked

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

已被CORS策略阻止:请求客户端不是安全上下文,资源位于更私有的地址空间私有

问题原因:

公网资源(访问者) 访问 私网资源(被访问者)

解决方案:

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

 参考:https://www.cnblogs.com/yr1126/p/15532431.html

https://blog.csdn.net/weixin_54514751/article/details/128098156

 

标签:secure,space,Chrome,private,报错,CORS,blocked
From: https://www.cnblogs.com/zqlym/p/18137704

相关文章