从http迁移到https时出现混合内容错误

时间:2017-08-28 16:18:32

标签: html https

我最近通过cloudflare将我的网站转换为https,并且在尝试通过w3 school的html include加载外部html页眉和页脚时遇到错误。错误是这个

Mixed Content: The page at 'https://multicrew.co.uk/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://multicrew.co.uk/indexheader'. This request has been blocked; the content must be served over HTTPS.

我的html包含代码就是这个

<!-- Header -->
    <div w3-include-html="indexheader.html"></div>

在标签内

<!-- Header/Footer Import Script -->
<script src="https://www.w3schools.com/lib/w3.js"></script>

由于

0 个答案:

没有答案