ShieldX Toolly
Open a tool Donate
Home Home
Blog Blog
FAQ FAQ
Open a tool Donate
All guides
Intermediate 5 min Web & Domain

CORS Checker Guide

Check Access-Control-* headers and misconfigurations

Sections
3
Level
Intermediate
Read
5 min
Section 01

What is CORS?

Cross-Origin Resource Sharing (CORS) is a browser security mechanism that controls when JavaScript on one origin can make requests to a different origin. Without CORS, the same-origin policy would block all cross-origin requests.

CORS is not a security feature — it's a relaxation of security. The same-origin policy protects users by default. CORS headers tell the browser to allow specific cross-origin requests that would otherwise be blocked.

Section 02

Key CORS headers

  • Access-Control-Allow-Origin: Which origins can read the response
  • Access-Control-Allow-Methods: Permitted HTTP methods
  • Access-Control-Allow-Headers: Permitted request headers
  • Access-Control-Allow-Credentials: Whether cookies/auth are sent
  • Access-Control-Max-Age: How long to cache preflight results

WarningAccess-Control-Allow-Origin: * combined with Access-Control-Allow-Credentials: true is invalid and browsers will reject it. You must specify exact origins when credentials are involved.

Section 03

Common CORS misconfigurations

The most dangerous CORS misconfiguration is reflecting the Origin header back as the ACAO value with credentials enabled. This allows any website to make authenticated requests to your API.

  • Reflecting Origin header → any site can read responses
  • Wildcard with credentials → browsers block it (but some servers misbehave)
  • Overly broad origin patterns (e.g., *.example.com matching evil.example.com)
  • Allowing unnecessary methods (DELETE, PUT) on read-only endpoints

TipMaintain an explicit allowlist of origins. Never reflect the Origin header. If you need dynamic origins, validate against a known list before returning the ACAO header.

Put it into practice

Try CORS Checker right now

Every concept in this guide is implemented in ShieldX. Open the tool, watch the network tab stay empty, and verify the security yourself.

Open CORS Checker

No signup · No cookies · No cost · secure.toolly.site