Interactive Builder 100% Browser-Local Zero Tracking

Nginx, Cloudflare Workers & Edge Security Config Builder

Generate production-hardened reverse proxy and edge configs in one click—combining HSTS, CSP, CORS preflight, upload limits (413 fix), read timeouts (504 fix), and SPA fallbacks (404 fix).

Target Platform & Security Policy

Generated Config: security-headers.conf

Frequently Asked Questions

Why do Nginx add_header directives need the 'always' flag?

Without `always`, Nginx omits custom security and CORS headers on 4xx and 5xx error responses, causing confusing CORS failures whenever an API returns 401 or 500.

Should I use Cloudflare Pages _headers or a Cloudflare Worker?

Use `_headers` for static sites on Cloudflare Pages (zero compute cost). Use a Cloudflare Worker when proxying dynamic origins or handling dynamic CORS origins.

How does this builder prevent 413 and 504 errors in Nginx?

It lets you configure `client_max_body_size` and `proxy_read_timeout` alongside your security headers in a single clean snippet.

Related Tools & HTTP Status Guides