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 error in 05-http.elm #136

Open
sbfram opened this issue Aug 28, 2019 · 2 comments
Open

CORS error in 05-http.elm #136

sbfram opened this issue Aug 28, 2019 · 2 comments

Comments

@sbfram
Copy link

sbfram commented Aug 28, 2019

Hi,

There's a CORS issue when running the 05-http.elm example in the tutorial. Chrome tells me

Access to XMLHttpRequest at 'https://elm-lang.org/assets/public-opinion.txt' from origin 'null' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://worker.elm-lang.org' that is not equal to the supplied origin.

I changed the example to request a file from a server that I could configure with Access-Control-Allow-Origin : * and that worked. Thought I'd post this here so that other Elm beginners who Google the error will understand that it's not a bug in the example per se, but appears to be a configuration issue on the server side.

Thanks,
Steve

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
@sbfram and others