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

asked 5 months ago1004 views
1 Answer
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
EXPERT
answered 5 months ago
profile picture
EXPERT
reviewed 5 months ago
  • Complete agree with the WAF approach. I am doing the same for a customer of ours.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions