Respecting its value is critical to ensuring that HttpRequest.META.REMOTE_ADDR is set properly (which in turn, impacts things like Sentry error reporting).
When the header contains a list of addresses, it's important that the last element be used; see this and this.
This header is set by Heroku and other reverse proxies.
Respecting its value is critical to ensuring that
HttpRequest.META.REMOTE_ADDR
is set properly (which in turn, impacts things like Sentry error reporting).When the header contains a list of addresses, it's important that the last element be used; see this and this.
Several third-party options for a fix: