sajad torkamani

In a nutshell

An origin is the combination of URL scheme, host, and port. Here are some examples of origins:

OriginSchemeHostPort
https://example.comhttpsexample.com443 (default port of https)
http://example.comhttpexample.com80 (default port of http)
http://example.com:8080httpexample.com8080

The path of the host doesn’t matter. So, the following origins would be considered the same:

  • https://example.com
  • https://example.com/foo
  • https://example.com/foo/bar

Sources

Tagged: HTTP

Leave a comment

Your email address will not be published. Required fields are marked *