Web content's origin is defined by the scheme (protocol), host (domain), and port of the URL used to access it. Two objects have the same origin only when the scheme, host, and port all match.
Some operations are restricted to same-origin content, and this restriction can be lifted using CORS.
||same origin because same scheme (
||same origin because a server delivers HTTP content through port 80 by default|
|HTML Living Standard
The definition of 'origin' in that specification.
See Same-origin policy for more information.