简单的iframe未显示在github页面上 [英] simple iframe is not displayed on github pages

查看:252
本文介绍了简单的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.

这篇关于简单的iframe未显示在github页面上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆