Reputation: 3864
I have a simple node app listening on 0.0.0.0
sitting behind an application load balancer. Now I need to get hostname of incoming request but it always says localhost
.
A simple task that seems impossible: ALB does not forward neither the Host
header, nor the X-Forwarded-Host
header.
Or am I missing something? How do I get request hostname?
Upvotes: 1
Views: 2681