### Discussed in https://github.com/encode/uvicorn/discussions/2236 <div type='discussions-op-text'> <sup>Originally posted by **nhairs** January 28, 2024</sup> We should probably support the `Forwarded` header which was standardised in [RFC 7239](https://datatracker.ietf.org/doc/html/rfc7239). One of the benefits of this header over `X-Forwarded-*` headers is that it supports including the port of the client rather than just the address. See also: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded</div> <!-- POLAR PLEDGE BADGE START --> > [!IMPORTANT] > - We're using [Polar.sh](https://polar.sh/encode) so you can upvote and help fund this issue. > - We receive the funding once the issue is completed & confirmed by you. > - Thank you in advance for helping prioritize & fund our backlog. <a href="https://polar.sh/encode/uvicorn/issues/2237"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/encode/uvicorn/issues/2237/pledge.svg?darkmode=1"> <img alt="Fund with Polar" src="https://polar.sh/api/github/encode/uvicorn/issues/2237/pledge.svg"> </picture> </a> <!-- POLAR PLEDGE BADGE END -->
Discussed in #2236
Originally posted by nhairs January 28, 2024
We should probably support the
Forwardedheader which was standardised in RFC 7239.One of the benefits of this header over
X-Forwarded-*headers is that it supports including the port of the client rather than just the address.See also: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded
Important