What AuditX checks
The scan sends one read-only page request to the address you scanned, with an Origin header set to https://auditx-cors-probe.invalid, a name that can never be a real site. It follows up to 3 redirects, waits up to 6 seconds, and retries once after a network failure. It reads two answers: Access-Control-Allow-Origin and Access-Control-Allow-Credentials. The finding applies only when the first answer repeats that made-up origin exactly and the second says true. A wildcard (*) is never flagged. If either part is missing, the check passes. When both are present, the result depends on what the browser saw while loading the page at desktop or phone size: it warns when the page made fetch or XHR requests to its own domain and the site also sets at least one cookie, which looks like a cookie-based session. When there is no such activity, it is an info note, which does not lower the score. It never fails. If the request did not complete, or the security probes are switched off in the scan settings, the result is an info note marked as not measured, and a security score that has any check not measured cannot go above 79. A warn lowers the security score. The scan has no login, so it does not prove that anything can be read. It tests only the scanned address, not other pages or API endpoints, and no origin other than the made-up one.
Why it matters
MDN explains that when a response allows credentials, the server has to name one explicit origin and must not use the wildcard. Echoing back whatever origin asks defeats the point of that rule.
OWASP Web Security Testing Guide covers testing cross-origin resource sharing and names reflecting the request Origin together with allowed credentials as a misconfiguration to look for, since it lets other websites read responses meant for a signed-in visitor.
How to fix it
- Find where your server or framework sets the Access-Control-Allow-Origin header. It is often in a CORS setting called allowed origins.
- Replace the reflected value with a fixed list of the exact origins you trust, such as your own app or your partner site, and send only the matching one back.
- If a response does not need cookies from other sites, stop sending Access-Control-Allow-Credentials: true on it.
- Add a Vary: Origin header on responses whose CORS headers change with the request, and scan again.
Access-Control-Allow-Origin: https://app.example.com
Access-Control-Allow-Credentials: true
Vary: Origin
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my site