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.
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 OneFirewallCross-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.
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.
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.
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