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
Post a Comment