Github gist page not loading in iframe

I want to list all my gists on one page, and iframe seemed the fastest and easiest solution, the problem is that it will not load. My example shows the same html that was used to create gist.github.com and google.com in an iframe. Google will download, but github will not.

Is this a limitation that Github imposes, is there a better way to list all my gists on one page without adding each meaning separately? I want it to appear automatically when I create a new one.

http://jsfiddle.net/guanome/VGEjB/1/

+7
source share
3 answers

Given that GitHub will not allow you to display its contents using a frame, lime Rob mentions in his answer (+1 by the way), you might consider using GitHub Api for Git .

This way you create your own content.

+7
source

Github added an X-Frame-Options: deny HTTP header, which prohibits embedding a page on a page (like a frame).

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

+15
source

Forgive me because I'm a big newbie, but I may have a solution.

Failed to load the webpage down to the local one and then add this to the server that you are hosting as a resource. Then just add href to the actual github.

Or alternatively

perhaps change the web page to pdf / png using the web page for the pdf / png extension. Then use the pdf / png file. I did this, and it worked for me, unfortunately, it is static and will not be relevant.

0
source

All Articles