CORS Checker
Check CORS (Cross-Origin Resource Sharing) headers for any URL. Verify allowed origins, methods, headers, and credentials support.
Preflight Response
OPTIONSActual Response
GETHow to Use
-
1
Enter the URL to check
Provide the API endpoint or resource URL you want to test. Optionally specify the Origin header value (e.g., https://yourapp.com) to simulate a cross-origin request from a specific domain.
-
2
Review the CORS headers
Inspect Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers, Access-Control-Allow-Credentials, and Access-Control-Max-Age in the server response. Each header is explained with its RFC reference.
-
3
Diagnose blocked cross-origin requests
The checker identifies common misconfigurations: wildcard origin with credentials, missing preflight support for custom headers, and incorrect Vary header that breaks CDN caching of CORS responses.
About
Cross-Origin Resource Sharing (CORS) is the W3C mechanism that allows web applications running on one origin to access resources on a different origin in a controlled, opt-in fashion. Without CORS, the browser's Same-Origin Policy (enforced since Netscape Navigator 2.0) would block all cross-origin Ajax requests by default — a critical security boundary that prevents malicious pages from silently accessing authenticated APIs using a user's session credentials. CORS extends this model with server-declared policies encoded in response headers.
The CORS Checker performs both a simple GET request and a simulated preflight OPTIONS request against the target URL, capturing the full set of CORS response headers and evaluating them against the Fetch Living Standard. Misconfigurations detected include: returning Access-Control-Allow-Origin: * on endpoints that process cookies or Authorization headers, failing to handle OPTIONS preflight requests (causing all non-simple requests to fail silently), and omitting Vary: Origin which causes CDNs to cache CORS headers from one origin and serve them incorrectly to other origins.
For API developers, CORS configuration is often the last thing tested and the first thing that breaks in staging environments. The checker helps distinguish browser-enforced CORS failures from actual server errors, identifies which specific header is missing or misconfigured, and provides the exact header values needed to resolve the issue. It also flags the security risk of overly permissive CORS policies — such as reflecting any Origin back as Access-Control-Allow-Origin — which can undermine the entire purpose of the Same-Origin Policy.