Is there a way to access nonce generated by sveltekit on hooks.server.js? #12997
Unanswered
hlesmana-var
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.
-
I'm trying to integrate the Sveltekit nonce with Sentry's script in order to avoid 'unsafe-inline' csp.
On the sentry side, seems like there's a way to specify the nonce.
ref: https://docs.sentry.io/platforms/javascript/guides/sveltekit/manual-setup/#configure-client-side-fetch-instrumentation
But, I'm having trouble connecting the two. Is there a way to inject Sveltekit's generated nonce to the sentryHandle above?
Beta Was this translation helpful? Give feedback.
All reactions