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

Suggest setting the CORS header (Access-Control-Allow-Origin) #302

Open
ChristophKaser opened this issue Aug 9, 2018 · 1 comment
Open

Comments

@ChristophKaser
Copy link

It might be helpful to mention the Access-Control-Allow-Origin-Header in the specification under 2.3, maybe like this:

The response should also set the Access-Control-Allow-Origin to * to allow consuming the API from javascript clients running in the browser.

At the moment, some providers have set that header, but a large number of them has not. Without the header, the response can only be consumed by a server client or standalone script, but not in the browser.

@tomerle
Copy link
Contributor

tomerle commented Sep 21, 2020

This would be very "welcoming" for public content, but might impose a security issue for private content, and also lead to other concerns like making this CORS support detectable from the client.

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