simple iframe is not displayed on github pages

早过忘川 提交于 2020-01-24 12:34:05

问题


I regularly embed iframes in my github.io pages but this one fails - I can't see why.

The 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

(note: when loading the html page locally, the iframe does show up).


回答1:


Check your browser console and you'll see the error:

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.

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.



来源:https://stackoverflow.com/questions/48612913/simple-iframe-is-not-displayed-on-github-pages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!