DevKits

CORS · Request header

Origin

The origin (scheme + host + port) of the request.

What is Origin?

The browser sets Origin on cross-origin requests, and on same-origin non-GET requests. Servers use it to decide whether to accept the request and what Access-Control-Allow-Origin value to echo back.

Typical usage

Read by servers implementing CORS.

Examples

Origin: https://app.example.com

Specification

Fetch Standard

Related headers