You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: