Skip to content

CSP reporting with session replay #9280

Answered by AbhiPrasad
filiptammergard asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @filiptammergard - unfortunately this is non-trivial because CSP doesn't actually led to an error being created by the SDK itself. Instead via headers you define the browser sends the CSP error directly to Sentry (no SDK involved there). This means there is no way for the Replay SDK to understand that a CSP error has been created (to adjust replay sampling accordingly).

cc @bruno-garcia @jas-kas something we might want to think about.

Replies: 1 comment

Comment options

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