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
I have an x-forwarded-for header coming in, the value of which has the form ip1:port1,ip2,ip3. ip3 is the one I care about, so the first entry never matters, but the form is a thing, even if it's not very common. Should ProxyHeadersMiddleware strip the :port from any entry in the list? Or should I write another middleware that rewrites the header (assuming it ever becomes an issue)?
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
-
I have an
x-forwarded-for
header coming in, the value of which has the formip1:port1,ip2,ip3
.ip3
is the one I care about, so the first entry never matters, but the form is a thing, even if it's not very common. ShouldProxyHeadersMiddleware
strip the:port
from any entry in the list? Or should I write another middleware that rewrites the header (assuming it ever becomes an issue)?Beta Was this translation helpful? Give feedback.
All reactions