Skip to main content

Module origin

Module origin 

Source
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 origin through the window / location / document JavaScript APIs,
  • gate access to internal schemes (resource:, …) from web pages,
  • compute Origin / Referer request headers without leaking bundled resource URLs to external servers,
  • enforce same-origin / cross-origin visibility for fetch() and XMLHttpRequest.

Structs§

Origin
The origin of a document or a fetch initiator.