-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Custom headers in 4.x Request #26333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @IlCallo thanks for your report. I think we were not aware that custom headers were actually useful - at least nobody reported any use case when we removed the possibility to use custom headers. |
The first package I linked already solves the problem for this use case scenario using a custom middleware, I created this issue just to let you know that some people is missing that feature and would welcome a way to define custom headers, parallel to the current management or integrated into it. |
@IlCallo do you want to work on this feature ? |
I actually moved from backend to frontend development, so I'm a bit rusty and won't have time to catch up... |
@IlCallo Don't worry ! |
…aud) This PR was merged into the 3.4 branch. Discussion ---------- add support for custom headers when using a proxy <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> See symfony/symfony#32961 and symfony/symfony#26333. We should document how to use custom headers when using reverse proxies since `Request::setTrustedHeaderName()` has been deprecated. Commits ------- a63c5a6 add support for custom headers when using a proxy
I searched issues and PRs and found nothing about the ability to re-add custom headers mapping in some form, like it where possible in previous versions.
My use case has been described in https://github.com/jdavidbakr/CloudfrontProxies package readme, but also other packages are struggling with the need of managing custom headers (fideloper/TrustedProxy#108).
It's not a critical feature probably, but it was really simple to do before, now it seems that it's no more possible.
Anyone else got this need?
The text was updated successfully, but these errors were encountered: