OneFirewall Alliance

CORS Policy Tester

Test Cross-Origin Resource Sharing configuration — fire preflight and simple requests and inspect headers

Enter an endpoint and the tester sends simple and preflight (OPTIONS) requests, then shows the Access-Control-* headers returned. Use it to confirm which origins, methods and headers an API allows and to spot overly permissive wildcard policies. More free security tools.

CORS policies are enforced by browsers. This tool fires real preflight and direct requests from your browser, plus uses a proxy cascade to inspect server headers when direct CORS requests are blocked.
How It Works & Why It Matters

Cross-Origin Resource Sharing is enforced by the browser, not the server, which makes it hard to debug from the server side alone. A failing request often looks identical to a successful one in server logs — the difference is entirely in which Access-Control-* response headers the browser decides to honour.

This tester sends both a simple request and, where applicable, the OPTIONS preflight a browser issues before certain cross-origin requests, then shows exactly which Access-Control-Allow-Origin, -Methods, -Headers and -Credentials values the server returned. A wildcard Access-Control-Allow-Origin: * combined with Access-Control-Allow-Credentials: true is invalid per spec and a common sign of a misconfigured API that's more permissive than intended.

Need to audit and harden your API security posture?

If you like this tool, Speak with OneFirewall

What the CORS Policy Tester does

Cross-Origin Resource Sharing (CORS) decides which websites may call your API from a browser. A policy that reflects any origin, or combines a wildcard with credentials, can let a malicious site read data on behalf of your logged-in users.

The tester sends the same simple and preflight requests a browser would and shows the Access-Control-* headers your endpoint returns.

How to use it

  1. Enter the endpoint. Type the API URL you want to test, and optionally the origin, method and headers a real client would send.
  2. Send the requests. The tester sends a simple request and an OPTIONS preflight, then lists the Access-Control-Allow-* headers in each response.
  3. Tighten the policy. Check that only the origins, methods and headers you intend are allowed, and that wildcards are not combined with credentials.

Frequently asked questions

What is a CORS preflight request?

Before some cross-origin requests, such as those with custom headers or methods like PUT and DELETE, the browser sends an OPTIONS request asking the server which origins, methods and headers it allows.

Is Access-Control-Allow-Origin: * dangerous?

It is fine for truly public, unauthenticated data. Browsers block it for requests with credentials, and reflecting any origin with credentials allowed is a common misconfiguration.

Does CORS protect my API from attackers?

No. CORS is enforced by browsers only. It does not stop direct requests from scripts or servers, so APIs still need authentication and authorisation.

More free tools: OneFirewall Free Tools · Terms explained: Glossary