I found a solution for spring reactive cloud gateway, but how to do it in spring cloud gateway server mvc without webflux? Spring cloud gateway add header from authentication Spring Cloud Gateway inject header
I tried to do this through implementing HttpServletRequestWrapper in my gateway as stated here Adding an HTTP Header to the request in a servlet filter, but I see that the request coming to another microservice is missing my headers.
UPD: the implementation option specified here also worked Adding an HTTP Header to the request in a servlet filter