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" />');



posted on 2021-06-16 21:24  bin790302901  阅读(112)  评论(0编辑  收藏  举报