Next.js Discord

Discord Forum

Strict CSP implementation for ISR

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
Hello, I am trying to find a maintainable solution to implement strict CSP in Next.js for pages based on SSR, ISR and SSG, but it seems that Next.js doesn't provide stable solution yet.

What I have found so far.
- https://github.com/vercel/next.js/discussions/54907
- https://github.com/vercel/next.js/tree/canary/examples/with-strict-csp
npm packages helpful but seems not actively maintained:
- https://github.com/nibtime/next-safe-middleware
- https://github.com/guydumais/next-strict-csp

0 Replies