-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sveltekit): Document new sentryHandle
options
#8768
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
4368c23
to
c5c2f2c
Compare
|
||
```javascript {filename:hooks.server.ts} | ||
// Add the nonce to the <script> tag: | ||
export const handle = sentryHandle({ fetchProxyScriptNonce: "2726c7f26c" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the actual nonce users need to define or do they potentially have a different one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh good point, this might be missleading. No, it can be any nonce. Just needs to match the one specified in the CSP directive. Probably better to replace with fetchProxyScriptNonce: "_YOUR_NONCE_"
Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks for documenting!
Co-authored-by: vivianyentran <20403606+vivianyentran@users.noreply.github.com>
Adds documentation for the two new options available with v7.91.0 in the SvelteKit SDK's
sentryHandle
request handler:ref: getsentry/sentry-javascript#9969