Expand description
Origin model for rendered documents.
See https://html.spec.whatwg.org/multipage/origin.html. The browser layer uses origins to:
- expose a consistent
originthrough thewindow/location/documentJavaScript APIs, - gate access to internal schemes (
resource:, …) from web pages, - compute
Origin/Refererrequest headers without leaking bundled resource URLs to external servers, - enforce same-origin / cross-origin visibility for
fetch()andXMLHttpRequest.
Structs§
- Origin
- The origin of a document or a fetch initiator.