How to preserve kong domain name in UI redirection

Hi ,

I am using kong 2.5 for APIs and Microservice routing and I got a requirement to place react ui application behind kong.so,I have created below service pointing to my UI application.

(host : www.example.com
protocol : http
path: /
port: 80).

I have created route for the same.
Host : www.mykongeg.com
Paths : {/maps/home}
strip_path : false
preserve_host : false

Kong domain : www.kongeg.com

So when I tried to access ‘www.kongeg.com/maps/home’, it is redirecting to ‘www.example.com/maps/home’ on browser.

is it possible to preserve kong domain name on browser without modifying to service url ?. so when I access ‘www.kongeg.com/maps/home’, it should display content returned by ‘www.example.com/maps/home’.

Thanks

HTTP redirects come in one of a few different flavors, but each one of them requires a Location header. You should try hitting your service with developer mode or otherwise enabled, whatever would allow you to view the network requests being made, and see what’s setting the Location header for you.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ