CORS Tester Online

Send a real CORS preflight and request to an API for your origin, method, headers and credentials; get the browser verdict, the reason and server fixes.

Free tool: 20 requests per minute.

Result

Press “Run” to see the result.

Give the API url, the page origin, the method, the request headers and whether credentials (cookies, credentials: include) are sent. The service decides like a browser (Fetch Standard): is it a simple request or does it need a preflight (and why), then sends a real OPTIONS preflight with Origin / Access-Control-Request-Method / -Headers (and -Private-Network when private_network=1) and a GET / HEAD probe with the Origin header. Redirects are not followed — a preflight must not redirect — and private / local addresses are refused.

You get allowed, a one-line verdict in English and Vietnamese and every problem explained: missing Access-Control-Allow-Origin, origin mismatch (exact scheme / host / port, trailing slash), several origins, * with credentials, missing Allow-Credentials, method or header not allowed (* never covers Authorization), preflight status not 2xx or redirected, missing Vary: Origin (cache poisoning between origins), Private Network Access, short preflight caching, exposed headers. When blocked, ready-to-paste fixes for nginx, Express (cors), Cloudflare Workers, Laravel and Apache are included.

Methods other than GET / HEAD are never sent for real (no side effects on your API): the preflight decides, and the response headers come from a GET to the same URL. Without url, paste preflight_headers / response_headers to simulate offline.

Use this in your code

curl -X POST "https://apibox.io.vn/v1/cors-check" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"origin":"https://app.example.com","method":"PUT","headers":"Authorization, Content-Type","credentials":"true","preflight_headers":"Access-Control-Allow-Origin: *\nAccess-Control-Allow-Methods: GET, POST\nAccess-Control-Allow-Headers: *","response_headers":"Access-Control-Allow-Origin: *"}'

API documentation → Get a free API key

FAQ

Does it send my PUT / DELETE request?

No. Only the OPTIONS preflight and a GET (or HEAD) are sent, so nothing changes on your server.

Why can a request work in Postman but fail in the browser?

CORS is enforced by browsers only; the server must answer the browser’s Origin with the right Access-Control-* headers, which this check shows.

Can I test localhost or an intranet API?

Not through the live check (private addresses are blocked); paste the response headers to simulate instead.