How do you pass a nonce to pages scripts? #5724
Unanswered
PlopTheReal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Using a node adapter I generate the CSP directives with helmet within the HTTP headers (known as more secure)
As I'm using 'strict-dynamic' I have to pass the nonce to the scripts tags.
How can you do so with Sveltekit?
server.js
Coming from Nextjs they provid such mechanism like the following:
_document.js
Beta Was this translation helpful? Give feedback.
All reactions