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

Coala Online is broken due to CORS #598

Closed
joeytwiddle opened this issue Jul 7, 2018 · 1 comment
Closed

Coala Online is broken due to CORS #598

joeytwiddle opened this issue Jul 7, 2018 · 1 comment

Comments

@joeytwiddle
Copy link

joeytwiddle commented Jul 7, 2018

https://coala.io/#/coalaonline does not work due to the SOP security restrictions in browsers. This is bad for Coala marketing and therefore adoption!

# Chrome console:
Failed to load https://api.gitmate.io/coala_online/: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://coala.io' is therefore not allowed access. The response had HTTP status code 504.

# Firefox console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.gitmate.io/coala_online/. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

We can use CORS to get past these restrictions. (MDN, Wikipedia)

To do that, we must add some HTTP headers to the response provided from api.gitmate.io

Where is the code for that API server?

@joeytwiddle
Copy link
Author

Oops, I posted on the wrong repo.

I have moved the issue to coala/landing-frontend#282

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

No branches or pull requests

1 participant