-
-
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
Security Policy Reporting - Content-Security-Policy has incorrect report-to info #9199
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-docs for triage ⏲️ |
@rodolfoBee Can you advise us on how best to address this in the docs? Would updating the code sample to remove query parameters (e.g. sentry_key=examplePublicKey) work or is that required? If there's no easy fix, should we remove the content security policy section entirely since report-uri is deprecate and report-to doesn't work? Are there any other updates we need to make? |
@vivianyentran this is a question for the engineering team responsible for the feature. |
Hi @vivianyentran, |
proposed some doc changes in #9440 @dan-goswag could you, please, check if the config from the above PR works for you? |
The docs will be updated in the linked PR and the followup work will be done in getsentry/sentry#38940 and getsentry/relay#2645 |
@olksdr Gave it a try, seems to work for me. Many thanks for the fix. |
Core or SDK?
Platform/SDK
Which part? Which one?
Web - Security Headers
Description
Following the instructions at https://docs.sentry.io/product/security-policy-reporting/#content-security-policy I configured the report-to field in my CSP to send to Sentry.
However this did not work - as per getsentry/sentry#52794 report-to does not support the use of querystring parameters which are used in the examples. Report-uri continues to work as expected.
Suggested Solution
The documentation should not show using the report-to field in a way which does not currently work, so this documentation should be removed or updated.
The text was updated successfully, but these errors were encountered: