Andrea Damiani
Hi Matt! Loved the article.
While the Spring Cloud Gateway works perfectly for me, I’ve been stuck trying to figure out how to make the Gateway communicate with the Microservice through the WebClient.
In your example, you created the /fave-cars endpoint, how do you configure the WebClient so that it can reach the car-service?
I tried many approaches, including the usage of ServerOAuth2AuthorizedClientExchangeFilterFunction, and even setting in the headers the bearer token myself. It seems like I always get a 302 response instead of the actual json data that I’m looking for.
Do you have any suggestions?