Skip to content

CORS Tester

Embed

Paste this where you want CORS Tester on your site. Adjust the height to fit.

<iframe src="https://www.browserutils.dev/embed/cors-tester/" width="100%" height="500" frameborder="0" loading="lazy" title="CORS Tester"></iframe>
<p style="font-size:12px;margin:4px 0 0"><a href="https://www.browserutils.dev/tools/cors-tester/">CORS Tester</a> by BrowserUtils</p>

Test CORS configuration by making fetch requests.Runs in this tab.

Note: Browser-based CORS testing is limited. The browser enforces CORS policies, so if the server does not allow your origin, the request will fail and response headers will be hidden. For comprehensive testing, use curl -v from your terminal.
Access-Control-Allow-Origin: The allowed origin(s), e.g. * or https://yourdomain.com
Access-Control-Allow-Methods: Allowed HTTP methods, e.g. GET, POST, PUT
Access-Control-Allow-Headers: Allowed request headers, e.g. Content-Type, Authorization
Access-Control-Allow-Credentials: Set to true if cookies/auth needed

Next step

About CORS Tester

Free online CORS tester. Test Cross-Origin Resource Sharing configuration by making browser fetch requests and inspecting CORS response headers. It runs in your browser and sends requests only to the URL you enter.

Questions

Why does my CORS test fail even though my server is configured correctly?
Browser-based CORS testing sends requests from this tool domain as the origin. If your server only allows specific origins, requests from this tool will be blocked. Use curl or a server-side tool to test CORS headers directly without browser restrictions.
What is a CORS preflight request?
A preflight request is an OPTIONS request the browser sends before the actual request when using non-simple methods (PUT, DELETE) or custom headers. The server must respond with appropriate Access-Control-Allow-* headers for the actual request to proceed.
What does Access-Control-Allow-Origin: * mean?
The wildcard * allows any origin to access the resource. This is fine for public APIs and static assets, but should not be used for endpoints that return private data or require authentication.
How do I fix CORS errors in my web application?
CORS errors are fixed on the server side by adding the correct Access-Control-Allow-Origin, Access-Control-Allow-Methods, and Access-Control-Allow-Headers response headers. The CORS tester helps you verify which headers your server is returning.
Is the CORS tester safe to use with production APIs?
The tester sends standard HTTP requests from your browser. It does not modify your server configuration. However, be aware that the requests will come from this tool domain, so your server must allow that origin or use a wildcard.

More in Security & Privacy

All 10 security & privacy