Skip to main content
SEC

CORS Header Checker

Validate CORS headers for web security

Advertisement
Advertisement

What is CORS?

CORS (Cross-Origin Resource Sharing) is the browser security mechanism that decides when JavaScript on one origin (e.g. https://example.com) may read responses from another (e.g. https://api.example.com). A server opts in by returning an Access-Control-Allow-Origin header. Unlike header viewers that fetch server-side, this checker performs a real cross-origin GET request from your own browser to the target URL, so an Accessible verdict means your frontend could actually read that API, and a Blocked verdict reproduces exactly what your users' browsers would do.

How to Use This Tool

  1. Enter the Origin, The frontend origin making the request, e.g. https://example.com. It labels the scenario in the Detail message.
  2. Enter the Target, The API URL to test, e.g. https://api.example.com/data. The https:// prefix is added automatically if you omit it.
  3. Click Check CORS, Your browser attempts a real cross-origin GET to the target and reports the verdict below.

Understanding the Results

Target echoes the URL you tested. Verdict is either Accessible, HTTP plus the live status code (CORS allows this browser), meaning the response was readable and the target serves a permissive Access-Control-Allow-Origin, or Blocked by CORS (or target unreachable), meaning your browser refused to read the response. Detail explains which case occurred, and Headers shows the Access-Control-Allow-Origin value the browser could see, or notes it is absent for your origin. Note the block happens before any response body is read, so no data leaks on a blocked check.

Tips & Best Practices

• A Blocked verdict is usually the secure, correct outcome, to allow access, the server must send Access-Control-Allow-Origin with your exact origin (a wildcard * does not work with credentials).

• Distinguish a CORS block from a dead server: if curl -i to the same URL returns HTTP 200 but this tool reports Blocked, it is purely a CORS header problem.

• Requests with custom headers, PUT/DELETE methods or JSON bodies trigger a preflight OPTIONS request first, make sure the server answers preflights, not just GET.

Frequently Asked Questions

It means the browser received (or would receive) a cross-origin response without a matching Access-Control-Allow-Origin header, so it refused to hand the response to JavaScript. The request itself may have reached the server, the block is on reading the reply, which is why blocked checks here leak no response data.

Two possibilities share this verdict: the target sent no Access-Control-Allow-Origin for your origin (the normal locked-down case), or the target is down, DNS-failing, or unreachable. Tell them apart with curl -i: an HTTP 200 via curl plus Blocked here means pure CORS; a curl failure means the server itself is unreachable.

CORS is enforced by browsers, not servers, a server-side fetch never triggers the policy, so only your browser can reproduce what your frontend experiences. The Origin field labels the scenario; the actual enforcement uses your real browsing context making a genuine GET to the target.

The check is a direct request from your browser to the target URL you entered, NETCUE does not proxy or log it. Be aware the target server will see a normal GET from your IP in its own logs, so avoid testing sensitive internal endpoints that should stay unlisted.

Advertisement

Sized this for your site?

Free engineers turn these numbers into a working design, topology, hardware and quote included.