将页面发布到线上时,出现HTTP警告。
原因是因为在https
中引入了http
的js文件,会被直接block掉的。
解决办法:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
借鉴资料:
https://wwwblogs/hustskyking/p/upgrade-insecure-requests.html
更多推荐
页面警告 Mixed Content: The page at '~' was loaded over HTTPS, but request
发布评论