diff --git a/apps/portal/src/proxy.ts b/apps/portal/src/proxy.ts index 0528f7d8..c5925213 100644 --- a/apps/portal/src/proxy.ts +++ b/apps/portal/src/proxy.ts @@ -52,12 +52,13 @@ function buildCSP(nonce: string, isDev: boolean): string { } // Production: Strict CSP with nonce - // 'strict-dynamic' allows scripts loaded by nonced scripts to execute. - // Next 16 applies the nonce to its own inline scripts, so 'unsafe-inline' - // is not required in script-src when the nonce is present. + // 'self' allows same-origin script files (Next.js chunks). + // The nonce allows inline scripts that Next.js generates at render time. + // Note: 'strict-dynamic' is intentionally omitted — it disables 'self', + // which blocks parser-inserted