What are the headers added by ALB?

0

Hi there,

Can you tell me, which headers an ALB adds to requests? (e.g. X-Forwarded-Proto?) I could only find the list for Classic Load Balancing with no reference to ALB itself.

Customer example explained: My customer has problems with mixed content requests (Tomcat server on EC2 doesn't know, that the client reached via HTTPS and SSL got terminated on ALB). Therefore we need to configure listening on headers, but we have no information about "What an ALB is delivering" so far.

AWS
已提问 4 年前6355 查看次数
1 回答
0
已接受的回答

See the http headers section of the ELB documentation. Excerpt:

Application Load Balancers and Classic Load Balancers add X-Forwarded-For, X-Forwarded-Proto, and X-Forwarded-Port headers to the request.

For front-end connections that use HTTP/2, the header names are in lowercase. Before the request is sent to the target using HTTP/1.1, the following header names are converted to mixed case: X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Port, Host, X-Amzn-Trace-Id, Upgrade, and Connection. All other header names are in lowercase.

AWS
Wladi_M
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则