CORS Header Generator

Generate Cross-Origin Resource Sharing headers for your API.

Privacy: this tool processes your data entirely in your browser. Nothing you paste or type is sent to the server.

Allowed origin or *.

Allowed HTTP methods.

Allowed request headers.

Allow credentials.

Preflight cache duration.

Result

Enter your values and press Calculate — the result appears here.

Worked examples

Basic CORS

  • origin = https://example.com

Result: CORS headers generated.

Frequently asked questions

What is CORS?

CORS controls which websites can access your API from a different domain.

Copied!