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

Improvements to Origin docs #310

Closed
brson opened this issue May 4, 2017 · 1 comment
Closed

Improvements to Origin docs #310

brson opened this issue May 4, 2017 · 1 comment

Comments

@brson
Copy link
Contributor

brson commented May 4, 2017

The docs here are a little sparse. I wanted to know what an origin is. I think the docs for Origin itself should explain in prose something like "origin is a combination of scheme/host/port, but some URLs have no origin in these conditions: ...".

The description for Origin::Opaque says "a globally unique identifier", which is not really what I think of as "opaque". Could use a better explanation of the purpose of making Opaque a guid. #servo will know.

@SimonSapin
Copy link
Member

An "origin" is the basis of web browsers’s same-origin policy, and Cross-Origin Resource Sharing (CORS) a.k.a. HTTP access control:

https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

Roughly, it represents “Are these two URLs from the same site?”

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