how to insert custom header in Application loadbalancer

0

I want to insert custom header in the incoming traffic before sending it to target groups in AWS Application loadbalancer

已提問 6 個月前檢視次數 1233 次
1 個回答
1

Hello.

I don't think it's possible to set custom headers using ALB alone.
So, as an alternative, how about setting AWS WAF to ALB and setting a custom header in AWS WAF?
https://docs.aws.amazon.com/waf/latest/developerguide/customizing-the-incoming-request.html
This feature allows you to set a custom header with the prefix "x-amzn-waf-".

Alternatively, you can also set custom headers using CloudFornt.
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/restrict-access-to-load-balancer.html#restrict-alb-add-custom-header

profile picture
專家
已回答 6 個月前
profile picture
專家
已審閱 6 個月前
  • Complete agree with the WAF approach. I am doing the same for a customer of ours.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南