Skip to content

DOC Update X-Forwarded-Proto header documentation#892

Merged
GuySartorelli merged 1 commit intosilverstripe:5.4from
creative-commoners:pulls/5.4/update-proxy-header-2
Mar 26, 2026
Merged

DOC Update X-Forwarded-Proto header documentation#892
GuySartorelli merged 1 commit intosilverstripe:5.4from
creative-commoners:pulls/5.4/update-proxy-header-2

Conversation

@emteknetnz
Copy link
Copy Markdown
Member

`TrustedProxyMiddleware` service:

```yml
SilverStripe\Control\TrustedProxyMiddleware:
Copy link
Copy Markdown
Member Author

@emteknetnz emteknetnz Mar 26, 2026

Choose a reason for hiding this comment

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

This was also wrong, have updated

Note has a different syntax to the HTTPCacheControlMiddleware example above as we set the Injector config here meaning there's no need to 'unset' the default values like we do above setting HTTPCacheControlMiddleware.defaultVary.X-Forwarded-Protocol: false -- HTTPCacheControlMiddleware lacks the getDefaultVary() and setDefaultVary() methods so we need to use that approach above

@emteknetnz emteknetnz force-pushed the pulls/5.4/update-proxy-header-2 branch from 7eb945b to 76dbea9 Compare March 26, 2026 22:45
Copy link
Copy Markdown
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM

@GuySartorelli GuySartorelli merged commit 6b2dc6c into silverstripe:5.4 Mar 26, 2026
3 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5.4/update-proxy-header-2 branch March 26, 2026 23:02
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