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 Answer
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
answered 5 months ago

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