How to use the CORS Tester
- Enter the API address that’s failing, and your site’s address as the origin.
- Choose the method and add any custom headers, such as Authorization.
- Tick Send cookies if your request uses credentials, then click Test CORS.
- Read what failed, then copy the fix for your server.
What is CORS?
Browsers stop a page on one site from reading responses from another, unless that other server agrees. Cross-Origin Resource Sharing is how it agrees, using Access-Control-Allow-* response headers. It must be fixed on the server, not in your front-end code.
What is a preflight?
For some requests, such as PUT, DELETE or those with an Authorization header, the browser first sends an OPTIONS request to ask permission. If that fails, the real request never happens.
Common CORS errors
- No Access-Control-Allow-Origin header: the server didn’t add CORS headers. Error pages often leave them out too, so check that your request isn’t failing for another reason.
- Wildcard with credentials:
*can’t be used with cookies. Send the exact origin. - Preflight fails: your server must answer
OPTIONSwith a 2xx status, before any login check. - Multiple values: two layers, such as a proxy and an app, may each be adding the header.
Keep it safe
Only allow origins you trust. Don’t copy the incoming Origin header back without checking it against a list, especially with credentials, because any site could then read your users’ data.
Want to build the headers from scratch? Use the CORS Header Generator. To inspect a full response, try the HTTP Header Checker.
Also searched as: cors checker, test cors, cors error, blocked by cors policy, access-control-allow-origin checker, cors preflight test, no access-control-allow-origin header.
Tools that pair well with the CORS Tester
- API Tester — A lightweight Postman alternative in your browser: build an HTTP request, send it and inspect status, timing, headers and pretty-printed JSON.
- Security Headers Checker — Grade a site’s HTTP security headers from A+ to F, see which are missing and why they matter, and copy ready-made config snippets for Nginx, Apache, Netlify, Vercel or Cloudflare.
- HTTP Status Codes — Every standard HTTP response code explained in plain English, with when to use it and how it affects SEO.
- Email Header Analyzer — Paste the raw headers of an email to see its whole journey: every server hop with the time it took, the SPF, DKIM and DMARC results, the originating IP, and warning signs like a mismatched Reply-To or Return-Path.