Michael Grupp

Results 5 comments of Michael Grupp

@nirh1989 as per the docs the `nonce` is only added if the pages are rendered dynamically. You can try adding this to `page.tsx: ```ts export const dynamic = 'force-dynamic' ```...

@nirh1989 I placed it on all my `page.tsx`. But as per the docs [Route Segment Config](https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config) you can place it in `layout.tsx`, `page.tsx` and `route.ts`. As per my understanding it...

@nirh1989 if you can't share you code you could start a sharable playground project starting form [with strict csp](https://github.com/vercel/next.js/tree/canary/examples/with-strict-csp)

@nirh1989 the code snippet you mentioned, is an example how you could get the `nonce` in an component and add it to a `Script` component. Try to avoid using 'use...

@nirh1989 i understand the concept of `use client`. As per my understanding the implemented CSP concept needs server components. So a pure client component will never get a nonce, because...