
Tutorial7 min read
Add a strict nonce-based Content Security Policy to Next.js 16
A strict CSP blocks injected scripts even when an XSS bug slips through. Set one up in Next.js 16 with proxy.ts and per-request nonces, then roll it out safely.
By Nilesh Kushvaha










