spring boot - Feign/Eureka client not passing X-Forwarded-For header -


i use spring boot + eureka + feign client forward requests 1 discovered server , works fine.

in server need ip of original user.

i can't seem find how configure feign client automatically edit 'x-forwarded-for' header able extract original user's ip address.

when use getremoteaddr() proxy ip address (as expected). when trying extract request.getheader("x-forwarded-for") null.

where should add / configure feature?


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -