Skip to content

feat(security): allow collection of COOP reports#106565

Merged
oioki merged 2 commits intomasterfrom
feat/coop-report-to
Jan 20, 2026
Merged

feat(security): allow collection of COOP reports#106565
oioki merged 2 commits intomasterfrom
feat/coop-report-to

Conversation

@oioki
Copy link
Member

@oioki oioki commented Jan 20, 2026

Allow setting of COOP header that intends to protect Sentry instances against some cross-origin attacks.

Django provides a native setting SECURE_CROSS_ORIGIN_OPENER_POLICY (since django/django#14189) but we want to be more flexible with the rollout and also collect violation reports before enforcing the policy.

This PR does not change the behavior because COOP_ENABLED = False is set by default.

@oioki oioki requested a review from a team January 20, 2026 14:42
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 20, 2026
Copy link
Contributor

@geoffg-sentry geoffg-sentry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful, thanks oioki!

@oioki oioki merged commit 7ac19a1 into master Jan 20, 2026
66 checks passed
@oioki oioki deleted the feat/coop-report-to branch January 20, 2026 16:15
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants