kitware-resonant / django-composed-configuration

Turnkey Django settings for data management applications.
Apache License 2.0
9 stars 2 forks source link

Support IP address detection from X-Forwarded-For #146

Open brianhelba opened 3 years ago

brianhelba commented 3 years ago

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: