Design-Microservices-Architecture-with-Patterns-Principles icon indicating copy to clipboard operation
Design-Microservices-Architecture-with-Patterns-Principles copied to clipboard

Question: YARP response transform

Open Allann opened this issue 1 year ago • 0 comments

Hi,

Having configured a route i.e. POST catalog/product to go to product as you outlined in your article https://mehmetozkaya.medium.com/api-gateways-with-yarp-reverse-proxy-in-net-8-microservices-58c5565697d0 How does the response transform the Location header on the way back? e.g. I used CreatedAtRoute which adds a link to the Location header but it is obviously an internal link as the api does not know (at least it doesn't use the X-Forwarder headers to create a valid public URL.

I hope that makes sense and am hoping you can help.

Allann avatar Jun 14 '24 07:06 Allann