Access-Control-Allow-Origin

Which web origin may read this response from browser JavaScript.

Response header (sent by servers) cors

How it works

Without it, browsers block cross-origin pages from reading the response, even though the server still processed the request. * allows any origin but not credentialed requests.

Example

Access-Control-Allow-Origin: https://app.example.com

See it live: send any request in Endpoint Client and open the Headers tab, where every response header is explained. Specification: Fetch Standard.

Related headers