You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it make sense for ProxyHeadersMiddleware to explicitly support trusting private networks? You can approximate it with trusted_hosts and a bunch of network names, but it's more complicated than that. Or at least, so ipaddress claims.
An alternative might be to allow passing in a custom function to perform the check, or a custom class to replace _TrustedHosts.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Would it make sense for
ProxyHeadersMiddleware
to explicitly support trusting private networks? You can approximate it withtrusted_hosts
and a bunch of network names, but it's more complicated than that. Or at least, soipaddress
claims.An alternative might be to allow passing in a custom function to perform the check, or a custom class to replace
_TrustedHosts
.Beta Was this translation helpful? Give feedback.
All reactions