next-strict-csp icon indicating copy to clipboard operation
next-strict-csp copied to clipboard

Next.js appDir

Open r34son opened this issue 2 years ago • 4 comments

Hi! Can i use your package with Next.js appDir?

r34son avatar Oct 22 '23 19:10 r34son

I quess no =) https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#step-3-migrating-nexthead

r34son avatar Oct 22 '23 19:10 r34son

Hi @r34son, did you find a solid solution for setting strict CSP in Nextjs's app router? I've stumbled across a dedicated documentation page and it's nothing short of magic. Link below:

https://nextjs.org/docs/app/building-your-application/configuring/content-security-policy

alvyynm avatar Jan 23 '24 02:01 alvyynm

Hi, you can look at my solution here https://github.com/r34son/profile/blob/master/src/middleware.ts

cc @alvyynm

r34son avatar Jan 23 '24 13:01 r34son

Thank you @r34son

alvyynm avatar Jan 24 '24 07:01 alvyynm