minrk/ipython_extensions

gist extension will not work on chrome due to security feature.

joezuntz opened this issue · 2 comments

This is more a warning than an issue - the handy-looking "gist" extension does not currently work on chrome due to a security feature.

The following error appears in the javascript console:
XMLHttpRequest cannot load https://api.github.com/gists. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8888' is therefore not allowed access.

The pop-up error message does not say anything. This appears to come from a chrome security feature discussed here:
https://code.google.com/p/chromium/issues/detail?id=40787

and here:
https://code.google.com/p/chromium/issues/detail?id=47416

It looks like those Chrome issues are about file:// URLs, not http on localhost, so I don't think they are relevant.

I just tested, and confirmed that the gist extension does indeed work on current Chrome-dev (38). In what exact browser and version are you seeing the problem?

Works for me in Chrome.