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

feita há 6 meses1244 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 6 meses
profile picture
ESPECIALISTA
avaliado há 6 meses
  • Complete agree with the WAF approach. I am doing the same for a customer of ours.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas