Site

The site of a piece of web content is determined by the registrable domain of the host within the origin. This is computed by consulting a Public Suffix List to find the portion of the host which is counted as the public suffix (e.g. com, org or co.uk).

The concept of a site is used in SameSite cookies, as well as a web application's Cross-Origin Resource Policy.

Examples

These are the same site because the registrable domain of mozilla.org is the same (different host and files path don't matter):

  • https://developer.mozilla.org/en-US/docs/
  • https://support.mozilla.org/en-US/

These are the same site because scheme and port are not relevant:

  • http://example.com:8080
  • https://example.com

These are not same site because the registrable domain of the two URLs differs:

  • https://developer.mozilla.org/en-US/docs/
  • https://example.com

See also