Github gist page won't load in iframe

断了今生、忘了曾经 提交于 2019-11-30 20:19:25

Considering GitHub won't let you display its content with a frame, lime Rob mention in his answer (+1 btw), you could consider using the GitHub Api for Git.

That way, you build your own content.

Github has added the X-Frame-Options: deny HTTP header, which prevents the page from being embedded in a page (such as a frame).

See also: https://developer.mozilla.org/en/The_X-FRAME-OPTIONS_response_header

Forgive me, because I am a big newbie - but I may have a solution.

Couldn't you download the webpage down to local and then add that to the server that you're hosting as a resource. Then, just add an href to the actual github.

Or alternatively,

possibly change the webpage to a pdf/png, using a webpage to pdf/png extension. Then use the of the pdf/png. I did this and it worked for me, unfortunately it's static and won't be up-to-date.

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