Skip to content

CSP Header #442

Closed Answered by dario-piotrowicz
wuifdesign asked this question in Q&A
Aug 25, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @wuifdesign 🙂👋

I tried to also apply your solution, I cloned the repository present in the comment you linked, this is my fork:
https://github.com/dario-piotrowicz/nextjs-csp-report-only

I've only added a single commit to change the routes to use the edge runtime

I've deployed the application here: https://nextjs-csp-report-only.pages.dev/

And it looks to me like the nonces are getting generated as expected at https://nextjs-csp-report-only.pages.dev/csp :

(PS: I also deployed the app on vercel: https://nextjs-csp-report-only-pi.vercel.app/csp and the result seems identical to me)

Am I missing something?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@wuifdesign
Comment options

@dario-piotrowicz
Comment options

@wuifdesign
Comment options

@dario-piotrowicz
Comment options

Answer selected by wuifdesign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants