vert-x3 / vertx-web

HTTP web applications for Vert.x
Apache License 2.0
1.11k stars 532 forks source link

Support real remote address behind HA proxy through x-forwarded-for header #2249

Open vietj opened 2 years ago

vietj commented 2 years ago

HttpConnection now provides a remoteAddress(boolean) that returns the local IP address when running behind HA proxy.

We can support this with an x-forwarded-for HTTP request header.

Note that any original header value should be included in the list.

onyn commented 1 year ago

This feature would be also helpful in SockJSSocket and WebSocketBase.