Skip to content

Remove incorrect referrer policy header#23

Merged
Sephsekla merged 1 commit into
mainfrom
1219-referrer-policy-fix
May 14, 2026
Merged

Remove incorrect referrer policy header#23
Sephsekla merged 1 commit into
mainfrom
1219-referrer-policy-fix

Conversation

@Sephsekla
Copy link
Copy Markdown
Collaborator

This PR entirely removes the referrer policy header that is currently being sent, as this stops refer info being sent between different Wikimedia sites (which is useful).

Without this present, we instead use the value set at https://github.com/wikimedia/wikimedia-wordpress-security-plugin/blob/main/inc/csp.php#L312, which is more appropriate.

@Sephsekla Sephsekla self-assigned this May 13, 2026
@Sephsekla Sephsekla requested a review from kadamwhite May 13, 2026 13:14
Copy link
Copy Markdown
Collaborator

@kadamwhite kadamwhite left a comment

Choose a reason for hiding this comment

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

I don't recall how we ended up in this situation but this fix makes sense

@Sephsekla Sephsekla merged commit 47eabda into main May 14, 2026
1 check failed
@Sephsekla Sephsekla deleted the 1219-referrer-policy-fix branch May 14, 2026 08:07
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