有时候当网站加上ssl后,网站中引用的外部资源会发出一下警告:
“Mixed Content: The page at 'https://m.phzc.com/product/detail?id=5' was loaded over HTTPS, but requested an insecure script 'http://res.wx.qq.com/open/js/jweixin-1.0.0.js'. This request has been blocked; the content must be served over HTTPS.”
这个时候只需要在我们的项目入口文件中加入header("Content-Security-Policy: upgrade-insecure-requests");即可解决