Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpFoundation] reintroduce set trusted header name in request#32961
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
55e3355 tod9c3cf4Comparenicolas-grekas commentedAug 6, 2019
I pretty much like whathttps://github.com/jdavidbakr/CloudfrontProxies does. |
brambaud commentedAug 7, 2019
https://github.com/jdavidbakr/CloudfrontProxies does more its true, that was just an example. Indeed the workaround is to do something like It feels a bit "hacky" to me nevertheless I agree that it could be enough for the majority. |
nicolas-grekas commentedAug 7, 2019
@brambaud would you mindopening a doc issue or PR, then close this issue please if you're OK to? |
brambaud commentedAug 7, 2019
I'm ok :) |
brambaud commentedAug 7, 2019
Closing in favor ofsymfony/symfony-docs#12117 |
…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 containsthe bug (seehttps://symfony.com/roadmap for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `master` for features of unreleased versions).-->Seesymfony/symfony#32961 andsymfony/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 think it could be great to reintroduce in a simple way the ability to support custom header names .
Indeed, not everyone can use "standard" header name (seefideloper/TrustedProxy#108 for instance).
Some people start using workaround likehttps://github.com/jdavidbakr/CloudfrontProxies.
I personally need it for some Drupal sites.