Skip to content

Opening up Access-Control-Allow-Origin to https://raw.github.com #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jakefeasel opened this issue Sep 29, 2012 · 3 comments
Closed

Comments

@jakefeasel
Copy link

It would be very nice if Access-Control-Allow-Origin for http://htmlpreview.github.com granted access to https://raw.github.com; This would allow AJAX requests within the HTML being previewed to successfully go through. Here is a demonstration of the problem:

http://htmlpreview.github.com/?https://github.com/jakefeasel/DDLBuilder/blob/master/index.html

Thanks!

@niutech
Copy link
Collaborator

niutech commented Sep 30, 2012

Since HTMLPreview is hosted on Github Pages, AFAIK there is no way to set custom headers there.

@jakefeasel
Copy link
Author

Is there any chance we could request that they make this change, then? It would certainly be very convenient if this worked. Thanks!

@niutech
Copy link
Collaborator

niutech commented Apr 24, 2014

Sorry, but Github Pages still doesn't allow CORS. You can use JSONP instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants