如何在HTTPS 网页中引入HTTP资源

报错:This request has been blocked; the content must be served over HTTPS.

方案:可以在相应的页面的<head>里加上这句代码,意思是自动将http的不安全请求升级为https。
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

转载于:https://www.jianshu.com/p/6d0d8510084c

猜你喜欢

转载自blog.csdn.net/weixin_33969116/article/details/91148644