在HTTPS服务器上调用HTTP的资源时,会发生混合内容错误,下面这样的:
Mixed Content: The page at '你的网址' was loaded over HTTPS, but requested an insecure resource 'xxx'.
解决办法:
页面的head中加入:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
意思是自动将http的不安全请求升级为https