Skip to content
Web & InternetLocal · Stays on device

Web CORS Configuration Helper

Build correct CORS headers for your API from allowed origins, methods and headers, with nginx and Express examples.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
web-cors-configuration-helperOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.

A planning and formatting aid, not a security or compliance audit. It doesn't test your live site; check every change in a staging environment and with your server or provider's documentation before deploying.

About this tool

Enter the origins allowed to call your API, the methods, request headers, exposed response headers, whether credentials (cookies) are allowed and the preflight cache time. The helper writes the response headers (including Vary: Origin and the preflight additions when needed), an nginx configuration that echoes only listed origins, and an Express example using the cors package.

It catches the classic mistakes: * with credentials (rejected by browsers), origins with paths, insecure http origins and preflight cache values above what browsers honour. CORS controls which websites can read responses in a browser; it is not authentication. Everything runs in your browser: nothing you paste or type is uploaded, and no website, DNS server or API is contacted.

  1. Input

    Your code or text

    Pasted or opened from a file

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    List the allowed origins and choose methods and headers.

  2. 2

    Decide on credentials and preflight caching.

  3. 3

    Copy the headers or the server example and test the preflight in dev tools.

Zero-upload architecture

How to use Web CORS Configuration Helper for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Web CORS Configuration Helper

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Decide on credentials and preflight caching.

  3. 3

    Get your result

    Copy the headers or the server example and test the preflight in dev tools.

All 26 web tools
  • Local

    HTTP Header Inspector

    Paste response headers to get each one explained and checked: HSTS, CSP, cookies, caching, CORS and information leaks.

    Open tool
  • Local

    Content Security Policy Builder

    Compose a Content-Security-Policy with explanations and a weakness review, and build a Permissions-Policy header.

    Open tool
  • Local

    API Endpoint Inventory

    Keep a list of API endpoints with methods, owners, authentication and status, and flag unowned or unauthenticated ones.

    Open tool
  • Local

    CORS Configuration Helper

    Design a CORS policy, test a request against it (including preflight) and copy config for nginx, Express or Apache.

    Open tool