Skip to content

Handle multiple hosts in X-Forwarded-Host header

When multiple reverse-proxies are stacked, the X-Forwarded-Host header contains all hops, separated by ", ".

We take the first one, i.e. probably the fqdn set by the browser.

See also https://github.com/gorilla/handlers/pull/205, which should be merged first.

Edited by Mathieu Parent

Merge request reports