AWS App Runner X-Forwarded-For Header

1

We're using a Next.js application deployed on AWS App Runner and need to retrieve the caller's source IP address. Initially, we anticipated that this information would be available in the X-Forwarded-For header, but it only shows an AWS-specific IP address. Our assumption is that the present X-Forwarded-For Header is set by the Fargate Container Engine, as a Network Load Balancer is used in App Runner.

How can we obtain the actual client's IP address?

1 Respuesta
0

Hi, as I know network LB does not support X-Forwarded-For headers - https://stackoverflow.com/questions/59392747/aws-network-load-balancer-unable-to-get-client-ip

profile picture
respondido hace 6 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas