CORS Builder.
Generate correct Access-Control-* headers for your server, with plain-English
explanations and checks for the dangerous combinations — then paste a real endpoint's
response headers to see whether a browser would actually allow a given request.
Allowed origins
Methods
Allowed request headers
Options
Response headers from the endpoint
The request a browser would make
Paste response headers and describe the request.
Decision trace
Parsed CORS headers
The CORS rules that trip people up
Wildcard ✕ credentials
Access-Control-Allow-Origin: * is invalid once a request carries cookies. Echo the exact request Origin and add Allow-Credentials: true — for trusted origins only.
Reflecting the Origin
Blindly echoing back whatever Origin arrives, with credentials, lets any site read authenticated responses. Always check against an allowlist first.
Preflights & Vary: Origin
Non-simple methods or custom headers cause an OPTIONS preflight. When the allowed origin is dynamic, send Vary: Origin so caches don't cross the streams.