Instantly test CORS headers, preflight requests, policies, and cross-origin configurations. Diagnose CORS errors with detailed security reports.
Enter a URL to analyze CORS configuration, check headers, and test preflight requests.
Everything you need to diagnose and fix CORS issues in your APIs and web applications.
Simulate OPTIONS preflight requests and validate Access-Control headers returned by your server.
Detect wildcard origins, credential misconfigurations, and other CORS security vulnerabilities.
Measure DNS lookup, connection, TLS handshake, TTFB, and total response timing metrics.
Track full redirect chains and verify CORS headers persist across all redirect hops.
Test up to 10 endpoints simultaneously to audit CORS configuration across your entire API surface.
Get server-specific fix code for Apache, Nginx, Express.js, and Django when CORS issues are detected.
Test how your API responds to multiple different origins to map allowed vs blocked origins.
Parse and explain every CORS-related response header with recommendations for improvement.
Four steps to complete CORS configuration analysis
Paste your API endpoint, CDN URL, or any web resource URL you want to test for CORS compliance.
Set your origin, HTTP method, custom headers, and choose advanced testing options like preflight or batch mode.
Our tool fetches the URL, captures all response headers, and performs 20+ automated CORS checks instantly.
Get a full security report with CORS header breakdown, timing data, and copy-paste server fix code.
Cross-Origin Resource Sharing (CORS) is a critical browser-enforced security mechanism that governs how web applications interact with resources hosted on different origins. An origin is defined by the protocol, domain, and port — meaning https://api.example.com and https://www.example.com are treated as different origins. When a JavaScript frontend at one origin makes a fetch or XHR request to another origin, the browser enforces the CORS policy by examining specific HTTP response headers.
The primary CORS response header is Access-Control-Allow-Origin, which tells the browser which origins are permitted. Setting it to * allows all origins (wildcards) but disables credential sharing. Access-Control-Allow-Methods lists permitted HTTP methods like GET, POST, PUT, and DELETE. Access-Control-Allow-Headers specifies which custom request headers the server accepts — critical when sending Content-Type: application/json or Authorization tokens. The Access-Control-Max-Age header caches the preflight result, reducing OPTIONS round-trips for performance. When sending cookies or auth headers, Access-Control-Allow-Credentials: true must be set alongside a specific (non-wildcard) allowed origin.
Browsers automatically send an HTTP OPTIONS preflight request before complex requests — those using methods other than GET/POST, or custom headers, or non-standard MIME types. Only after a successful preflight does the actual request proceed. Simple requests using text/plain, application/x-www-form-urlencoded, or multipart/form-data MIME types skip preflight. Understanding preflight behavior is essential for debugging CORS HTTPS APIs, REST endpoints, and GraphQL services.
The most frequent CORS error — "No 'Access-Control-Allow-Origin' header is present" — means the server is not returning CORS headers at all. In Nginx, add add_header 'Access-Control-Allow-Origin' 'https://your-site.com'; inside your location block. In Express.js, use the cors npm package. Apache requires Header set Access-Control-Allow-Origin "*" inside a .htaccess or VirtualHost block. Always test after deployment with a CORS tester to confirm the fix works across all HTTP methods.
CORS works alongside MIME type enforcement. Browsers perform MIME sniffing protection via X-Content-Type-Options: nosniff. Mismatched or missing MIME types — like serving JSON without application/json — can cause silent fetch failures even when CORS headers are correctly set. Our CORS header checker surfaces these misconfigurations alongside standard CORS analysis so you can resolve multi-layer issues in one pass.
Over 100 free online tools for developers, SEO professionals, and web creators.