冰豆网

分享网络精彩
bingdou.com.cn

js代码中https页面无法发起http请求,将所有http请求转换为https请求的解决方案

时间:2020-03-31加入收藏

在页面<head>头部中增加代码
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
这样会将页面中的http请求强制转换为https。

打 赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

TGA: 技巧

分享到:


官方微信二维码冰豆网官方微信公众号