has been blocked by CORS policy: The request client is not a secure context and the resource is in..

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 后就可以恢复正常了。
has been blocked by CORS policy: The request client is not a secure context and the resource is in.._第1张图片

你可能感兴趣的:(chrome,前端)