Summary As of October 2026, the Next.js docs set response headers through the headers function in next.config.js, returning source patterns with header key and value pairs. The docs list Strict-Transport-Security, X-Content-Type-Options, Referrer-Policy, Permissions-Policy and X-Frame-Options (superseded by CSP frame-ancestors).