Skip to content

Add 'report-uri' directive to Content-Security-Policy - #3112

Merged
JacobCoffee merged 2 commits into
python:mainfrom
sethmlarson:sentry-csp-report-only
Sep 11, 2026
Merged

Add 'report-uri' directive to Content-Security-Policy#3112
JacobCoffee merged 2 commits into
python:mainfrom
sethmlarson:sentry-csp-report-only

Conversation

@sethmlarson

Copy link
Copy Markdown
Contributor

Part of #3041, adds the report-uri directive to the Content-Security-Policy-Report-Only header. This will allow us to set a reporting URL via Sentry and see whether any policies are being violated today before we start enforcement.

We don't use report-to and Reporting-Endpoints because django-csp doesn't seem to support this as easily? Another thing to do when we move to Django 6.

@sethmlarson
sethmlarson force-pushed the sentry-csp-report-only branch from 367966d to eec1a92 Compare September 10, 2026 16:56
@JacobCoffee
JacobCoffee enabled auto-merge (squash) September 11, 2026 15:16
@JacobCoffee
JacobCoffee merged commit 90d4d26 into python:main Sep 11, 2026
7 checks passed
@sethmlarson
sethmlarson deleted the sentry-csp-report-only branch September 11, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants