vertx-web icon indicating copy to clipboard operation
vertx-web copied to clipboard

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

Open vietj opened this issue 2 years ago • 1 comments

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.

vietj avatar Aug 05 '22 09:08 vietj

This feature would be also helpful in SockJSSocket and WebSocketBase.

onyn avatar Dec 23 '22 17:12 onyn