Mixed Content错误的解决

错误示意图:

 

在网页head下加入下面这句

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

jquery添加方式

添加 meta
$("head").append('<meta http-equiv="content-type" content="text/html;charset=gbk" />');



Top
收藏
关注
评论
原文地址:https://www.cnblogs.com/for917157ever/p/14891153.html