Skip to content

Setting a different CSP using routeRules #495

Closed Answered by vejja
P4sca1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @P4sca1
You are right that CSP will not be reloaded from a client-side navigation. This is a Nuxt limitation.
As you suggest, our recommendation is therefore to use a single CSP policy for the whole website. Our guidance is provided here :
https://nuxt-security.vercel.app/documentation/advanced/strict-csp#per-route-csp

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@P4sca1
Comment options

Answer selected by P4sca1
Comment options

You must be logged in to vote
0 replies
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