origin

The scheme, host and port a web page came from, such as https://app.example, which browsers use to decide what the page may access.

In more detail

Two addresses have the same origin only if all three parts match. Browsers send an Origin header on cross-origin requests, and a server that allows CORS should name the exact origins it trusts rather than every site.

Example

In the browser: Storage, cookies by default and script access are isolated per origin, and the same-origin policy stops one origin reading another's responses. Changing any one part, even http to https, makes a different origin.

Related terms

Taught in

References

Certification courses