简单的iframe未显示在github页面上
我经常将iframes
嵌入到我的github.io页面中,但是这一步失败了-我不知道为什么.
I regularly embed iframes
in my github.io pages but this one fails - I can't see why.
iframe
:
<iframe src="http://www.javarepl.com/embed.html" style="width: 500px; height: 130px; border: 0px"></iframe>
嵌入在此页面的多个位置-未显示:
Embedded at several places in this page - and not showing up:
https://seinecle.github.io/codapps/generated-html/essential-notions-of-code.html
(注意:在本地加载html页面时,iframe会显示出来).
(note: when loading the html page locally, the iframe does show up).
检查浏览器控制台,您将看到错误:
Check your browser console and you'll see the error:
混合内容:位于" https:/上的页面/seinecle.github.io/codapps/generation-html/essential-notions-of-code.html '已通过HTTPS加载,但请求了不安全的资源'
Mixed Content: The page at 'https://seinecle.github.io/codapps/generated-html/essential-notions-of-code.html' was loaded over HTTPS, but requested an insecure resource 'http://www.javarepl.com/embed.html'. This request has been blocked; the content must be served over HTTPS.
您不能在HTTPS文档中嵌入HTTP框架.您可能需要与该网站的运营商联系,以要求他们启用HTTPS.
You can't embed HTTP frames in an HTTPS document. You may want to contact the operator of that web site to ask them to enable HTTPS.