CORS Checker

Try Sample:
Quick Origin PresetsClick to autofill origin
Clear answers to common questions about CORS headers, preflight requests, and API configuration.

CORS Checker FAQ

A CORS checker tests whether an API endpoint returns appropriate Cross-Origin Resource Sharing headers. It simulates cross-origin requests from frontend apps and verifies whether the server permits JavaScript to access the payload.
Postman and cURL are server-side HTTP utilities that bypass browser security sandboxes. Web browsers enforce the Same-Origin Policy to protect user sessions. If the backend omits Access-Control headers, browsers block JavaScript from reading the data.
A preflight request is an automated HTTP OPTIONS request sent by the browser before the actual call. Browsers send preflights when requests include custom headers like Authorization, non-standard content types, or HTTP methods like PUT and DELETE.
No. The W3C specification strictly prohibits using Access-Control-Allow-Origin: * when Access-Control-Allow-Credentials is true. Servers handling authenticated requests must echo the specific requesting origin rather than a wildcard.
When servers dynamically reflect requesting origins, they must include Vary: Origin. This header instructs CDNs and reverse proxies to cache responses separately per origin, preventing cache collisions and cross-origin leaks.
You must configure CORS on the backend API server. Update your middleware or web server configuration to send Access-Control-Allow-Origin with your frontend domain or wildcard.
Our backend runner sets the HTTP Origin header to http://localhost:3000 or your custom development URL. Because tests originate from our testing engine, they bypass browser sandbox restrictions that forbid modifying Origin headers.
A preflight OPTIONS request must return HTTP 200 OK or 204 No Content. Returning error codes like 401, 403, 404, or 500 causes the browser to abort the subsequent call.
By default, browsers only permit JavaScript to inspect a small set of safelisted headers. If your application needs to read custom headers like X-Total-Count, the server must expose them via Access-Control-Expose-Headers.
Disclaimer
The CORS Checker evaluates public web endpoints using the URL and origin parameters provided. Results reflect headers returned by the target server at the time of testing. We do not store or log your queries.