Skip to main content
SiteScan.top

CORS and cross-origin reads

Which other sites’ scripts may read this one’s pages. An origin echoed back with credentials allowed lets any page a signed-in visitor opens read this site as them.

Browsers stop a script on one site from reading responses from another site, unless the other site allows it with CORS headers. Access-Control-Allow-Origin names which origins may read; Access-Control-Allow-Credentials: true lets that read include the visitor's cookies. Misconfigured, these headers let any website read your pages as a logged-in visitor sees them — personal data, tokens, account details.

How SiteScan checks it

The scanner requests the home page with an Origin header for a made-up site and looks at the answer:

How to fix

Keep an explicit allow-list of origins and compare the request's Origin against it; send nothing when it does not match. Never combine a reflected origin with Allow-Credentials: true. Most pages need no CORS headers at all — only APIs called from other domains do. The other rows of the group are explained under security headers.

See this check on your own site

Run a free scan: the report shows this row for your domain along with the other checks of the site audit.

More in “Security headers”

What SiteScan checks

TLS certificate

Domain registration

Indexing

Addresses & redirects

Security headers

Delivery & reputation

Internal links

Exposure

Well-known files

DNS & email

Privacy & consent

Core Web Vitals

Technology