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

Host-wide opt-in #7

Open
mnot opened this issue May 30, 2016 · 2 comments
Open

Host-wide opt-in #7

mnot opened this issue May 30, 2016 · 2 comments

Comments

@mnot
Copy link

mnot commented May 30, 2016

Leveraging CORS here makes sense from a using-tools-that-are-already-defined standpoint, but this use is a poster child for how chatty CORS is.

In many cases, the decision about whether data is allowed is going to be origin-wide; either "yes, I'm on the Internet" or "no, I'm not."

See also whatwg/fetch#210.

@annevk
Copy link

annevk commented Sep 22, 2017

The solution here is Origin Policy I hope.

@rcombs
Copy link

rcombs commented Sep 3, 2020

This is very similar to my comment here: https://bugs.chromium.org/p/chromium/issues/detail?id=590714#c17
I think this can be addressed by either setting additional headers to indicate a host-wide opt-in, or via something under .well-known. Preflighting every single request in all cases is definitely excessive and the current CORS cacheing mechanism (keying on the full URL) is too granular to solve that problem.

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