Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-860

Proxy address forwarding should omit the port information in the HOST header for default ports

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Core
    • None

      The class ProxyPeerAddressHandler always adds the port to the HOST header field. While it is allowed to always add the port, this breaks for example keycloak running behind a reverse proxy (https://issues.jboss.org/browse/KEYCLOAK-2830)

      According to the HTTP specification (https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23) the port can be left out, if it is the default port for the current schema (80 for HTTP and 443 for HTTPS).

      Most (if not all) browser implement the HOST header this way, they only send the port if it is different from the default.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              markus-1 Markus Heberling (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: