CodeTracked since May 18, 2026
Add Host-header allowlist on all /api routes to block DNS-rebinding attack surfaces
This change introduces a new Next.js middleware and shared host validator that enforce an allowlist on every `/api/*` request, so API handlers like convert/deploy can only be called from loopback by default (`127.0.0.1`, `localhost`, `::1`) unless operators explicitly extend hosts or intentionally disable the gate via environment variables.
Next.js middlewareHost header/api/* route protectionhost allowlist