Origin means scheme, host and port together

An origin is the combination of protocol, hostname and port, and changing any one of them makes it a different origin.

So HTTP and HTTPS versions of the same site are separate origins, and so are two ports on the same host. It is a precise definition that people apply loosely, which leads to sharing assumptions between things the browser treats as entirely unrelated.

More on Browser security