Mixed Content: The page at 'xxx' was loaded over HTTPS, but requested an insecure resource 'xxx'.

HTTPS页面里动态的引入HTTP资源 , .在HTTPS页面里通过AJAX的方式请求HTTP资源,报错

head中加入

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

意思是自动将http的不安全请求升级为https

 

 
 
posted @ 2021-05-11 15:00  秦笑  阅读(506)  评论(0编辑  收藏  举报