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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -