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 Risposta
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
con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande