Skip to content
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

CORS issue on demo page (also https issue) #721

Closed
joeytwiddle opened this issue Dec 14, 2016 · 4 comments

Comments

@joeytwiddle
Copy link

commented Dec 14, 2016

If I visit the demo page http://standardjs.com/demo.html, I cannot format the code. I see this in the Firefox console:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://standardizer.flet.io//lint. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

And this in Chrome's console:

XMLHttpRequest cannot load https://standardizer.flet.io//version. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://standardjs.com' is therefore not allowed access. The response had HTTP status code 404.

I am running UBlockOrigin in both browsers, but I still get the error even if it's disabled.

And by the way, I also tried accessing the demo page over https, but both browsers complained because the certificate is assigned to *.github.com.

@joeytwiddle

This comment has been minimized.

Copy link
Author

commented Dec 14, 2016

Oh sorry, this is a duplicate of #717

@Flet

This comment has been minimized.

Copy link
Member

commented Dec 14, 2016

huh, checking this out.

@Flet

This comment has been minimized.

Copy link
Member

commented Dec 14, 2016

fixed! Can you give it a try?

@Flet Flet closed this Dec 14, 2016

@feross

This comment has been minimized.

Copy link
Member

commented Dec 15, 2016

Works for me, thanks @Flet!

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
4 participants
You can’t perform that action at this time.