What it is
CORS (Cross-Origin Resource Sharing) is the browser mechanism that decides whether JavaScript on one origin can read responses from another. Servers opt in via Access-Control-Allow-Origin and related headers (Allow-Credentials, Allow-Headers, Allow-Methods, Max-Age). Misconfiguration, such as a wildcard origin combined with credentials, or reflecting any Origin back, lets malicious sites read authenticated data on behalf of your users.
Why it matters
Overly permissive CORS (e.g. Allow-Origin: *) or wrong credential handling can expose data to malicious sites. Tight, correct CORS is essential for APIs and authenticated endpoints. Monitoring catches drift and mistakes.
How Barrion checks it
Barrion inspects CORS-related response headers (Access-Control-Allow-Origin, Allow-Credentials, Allow-Headers, Allow-Methods, Max-Age). We report permissive or inconsistent settings, such as Access-Control-Allow-Origin: * combined with Allow-Credentials: true, or reflected Origin without an allow-list, and suggest safer configurations. All checks are passive.
Configuration examples
add_header Access-Control-Allow-Origin "https://app.example.com" always;
add_header Access-Control-Allow-Credentials "true" always;Verify it
curl -sI -H 'Origin: https://app.example.com' https://api.example.com | grep -i access-control