Skip to content
Developer & CodeLocal · Stays on device

CORS Configuration Helper

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

  • nginx, Express (cors package), Apache (mod_headers), raw headers
  • Free to use
  • No sign-up or watermark
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
nginxExpress (cors package)Apache (mod_headers)
Open CORS Configuration Helper

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.

Generated configuration is a starting point. Test it in your own environment; CORS controls which sites can read responses, it does not replace authentication or authorisation.

About this tool

List the origins allowed to call your API, the methods and request headers they may use, any response headers scripts should be able to read, whether cookies or HTTP auth are allowed, and how long preflights may be cached. The helper flags mistakes that make browsers reject the policy, such as a * origin with credentials, origins with paths or trailing slashes, the risky "null" origin and http:// origins.

Then test a specific request: enter the calling page's origin, the method and the headers, and see whether it is a simple request or needs a preflight, whether the browser will allow it and exactly which response headers your server must send. Copy ready-made configuration for nginx (with an origin allow-list map and OPTIONS handling), the Express cors package, Apache mod_headers, or the raw headers. Rules follow the WHATWG Fetch Standard. Everything runs in your browser. What you paste is never uploaded, logged or stored.

  1. Input

    Your code or text

    nginx, Express (cors package), Apache (mod_headers), raw headers

  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

    Enter the allowed origins, methods and headers.

  2. 2

    Test a request your front end makes and read why it passes or fails.

  3. 3

    Pick your server and copy the generated configuration.

Zero-upload architecture

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

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

  1. 1

    Open 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

    Test a request your front end makes and read why it passes or fails.

  3. 3

    Get your result

    Pick your server and copy the generated configuration.

  • Local

    HTTP Header Analyzer

    Paste response headers and check security headers (HSTS, CSP, framing, nosniff, cookies, CORS) with plain-language fixes.

    Open tool
  • Local

    Nginx Config Formatter

    Re-indent and tidy an nginx configuration, catch missing semicolons and braces, and flag common security and logic mistakes.

    Open tool
  • Local

    API Request Builder

    Build an HTTP request (method, URL, query, headers, auth, body) and copy it as cURL, fetch, HTTPie or Python requests.

    Open tool
  • Local

    HTTP Status Code Lookup

    Look up any HTTP status code: its official name and RFC, what it means in plain language and when to use it.

    Open tool