Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2196

add x-forwarded-* headers support

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 8.0.0.CR1
    • None
    • None
    • None

      Hello.
      If it is desirable, can you add the possibility for wildfly/undertow subsystem to retrieve x-forwarded-host and similar headers and set a remote ip address and hostname based on it?
      This header is set by proxy servers to indicate proxies this request has passed and to indicate the client's real ip address.
      It's extremely useful if an application checks and uses the hostname or ip of a client that connects to it.
      In the case of wildfly directly open to the public, the ip and host given will be that of a client, but if the server where an application is running is just a backend server and there is a frontend before it that proxies to it, the ip and host will be that of the proxy, often localhost if the proxy sits on the same machine, that is undesirable because you don't want to ip-ban a proxy.

              tomazcerar Tomaž Cerar (Inactive)
              webczat Michał Zegan (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: