Origin

An origin is the scheme, host, and port tuple associated with a resource or request context.

  • origins
  • cors
  • browsers

Definition

An origin is the tuple of scheme, host, and port associated with a resource or request context. Paths, queries, and fragments are not part of it.

https://app.example.invalid:8443

Expected result: changing the scheme, host, or effective port creates a different origin; changing only the path does not.

Why it matters

Browsers use origins for same-origin checks and CORS. Cookie scope and the same-site model use related but different boundaries, so “same origin” and “same site” are not interchangeable.

Primary sources