问题现象:
网站开启了https,但浏览器一直是带感叹号的小锁,提示“网站非安全连接”
点击小锁提示:加密不安全!
按F12检测存在以下问题:
Mixed Content: The page at ‘xxx’ was loaded over HTTPS, but requested an insecure resource ‘xxx’.

解决方法:
在PHP页面的中加入:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
意思是自动将http的不安全请求升级为https
设置后,绿锁就会显示出来!给人的感觉就是好。

© 版权声明
THE END
暂无评论内容