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달 전1244회 조회
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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠