DevTools Logo

CORS Policy Builder

CORS Policy Builder

Configure cross-origin response headers and server snippets entirely in your browser

CORS configuration

Choose which origins, methods, and headers your server should allow.

Enter one origin per line.

Permit cookies and authorization credentials.

About this tool

Build CORS response headers, Nginx directives, and JavaScript fetch examples for safe cross-origin requests and preflight handling CORS Policy Builder runs in the browser on DevTools. There is no signup, and your input stays on this device unless the tool explicitly performs a live network lookup.

What this tool does not do

  • CORS Policy Builder is a free in-browser utility, not a hosted API. It does not keep server-side history and is not a substitute for production verification in your own stack.

How do I use this tool?

  1. How do I use CORS Policy Builder?

    Open CORS Policy Builder, enter or paste your input, and copy the result. The page works without an account.