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개 답변
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
답변함 6달 전

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

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

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

관련 콘텐츠