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

Allow CORS #50

Closed
chendrix opened this issue Jul 19, 2015 · 1 comment
Closed

Allow CORS #50

chendrix opened this issue Jul 19, 2015 · 1 comment

Comments

@chendrix
Copy link

The server that runs package.elm-lang.org should allow CORS

One particular reason: The Task tutorial walks users through how to make HTTP requests to http://package.elm-lang.org/packages/elm-lang/core/latest/README.md. Anyone trying to follow along, running their copy of the code through elm-make or elm-reactor will end up with

XMLHttpRequest cannot load http://package.elm-lang.org/packages/elm-lang/core/latest/README.md. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8000' is therefore not allowed access.
@evancz
Copy link
Member

evancz commented Aug 13, 2015

I think the task tutorial should choose something else.

I don't want to give unrestricted access to the resources on this website. I actually do want to add it for elm-lang.org in particular, but not for anyone.

Does that still align with your goals?

bobwhitelock added a commit to bobwhitelock/elm-explorer that referenced this issue Aug 17, 2017
These were obtained using `curl http://package.elm-lang.org/new-packages
> src/packages.json`. Cannot obtain dynamically due to CORS not being
supported (with no plans to support it; see
elm/package.elm-lang.org#50).
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

3 participants