Skip to content

nginx: enable Content Security Policies#1909

Merged
alxndrsn merged 4 commits into
getodk:nextfrom
alxndrsn:enable-csps
May 26, 2026
Merged

nginx: enable Content Security Policies#1909
alxndrsn merged 4 commits into
getodk:nextfrom
alxndrsn:enable-csps

Conversation

@alxndrsn
Copy link
Copy Markdown
Contributor

@alxndrsn alxndrsn commented May 23, 2026

Switch all headers from Content-Security-Policy-Report-Only to Content-Security-Policy.

What has been done to verify that this works as intended?

Lots of reviewing of CSP reports.

Next step is to enable, and see what breaks in QA.

Why is this the best possible solution? Were any other approaches considered?

It's complicated.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Should protect them from bad things while allowing normal things. But there's a risk it breaks random functionality for web users.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No?

Before submitting this PR, please make sure you have:

  • branched off and targeted the next branch OR only changed documentation/infrastructure (master is stable and used in production)
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

alxndrsn added 3 commits May 23, 2026 11:18
Switch all headers from `Content-Security-Policy-Report-Only` to `Content-Security-Policy`.
@alxndrsn alxndrsn marked this pull request as ready for review May 23, 2026 11:30
@alxndrsn alxndrsn requested a review from lognaturel May 23, 2026 11:30
@alxndrsn alxndrsn merged commit 95717b1 into getodk:next May 26, 2026
7 checks passed
@alxndrsn alxndrsn deleted the enable-csps branch May 26, 2026 07:55
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