美文网首页
解决https网页中引入http资源

解决https网页中引入http资源

作者: Shrike_55e0 | 来源:发表于2019-08-22 13:49 被阅读0次

前言

在https网页中引入http资源会报错

Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure stylesheet '<URL>'. This request has been blocked; the content must be served over HTTPS.

可以head标签中加入

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

解决

相关文章

网友评论

      本文标题:解决https网页中引入http资源

      本文链接:https://www.haomeiwen.com/subject/nwjnsctx.html