Issue
We need to filter out events that are of CSP type, but none of the SDKs seem to allow us to specify that. How could we filter these out to not prevent further events from counting against our Errors quota?
Applies To
- Sentry customers that use CSP Reporting
Resolution
To filter out CSP events first navigate to the relevant project's settings -> Security Header -> CSP.
You can set "Additional ignored sources" which will filter CSP reports if blocked_uri
, source_file
or document_uri
match one of the sources you added. More info about Content-Security-Policy can be found here: https://docs.sentry.io/product/security-policy-reporting/.