Skip to content
websniffer.click

Access-Control-Allow-Origin

Response header, cors

Says which origins may read the response with JavaScript from another site.

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

* allows every origin but cannot be combined with credentials (cookies). For credentialed requests the server must echo the specific origin and add Vary: Origin.

Reflecting any incoming Origin together with Access-Control-Allow-Credentials: true lets every website read your users' data. That is a vulnerability, not a CORS fix.

Check it on a live site

Run a header check on any URL to see whether and how it sends Access-Control-Allow-Origin.

Specification: Fetch Standard