Ocelot setup to redirect user on a react application

420 views Asked by At

We are doing some server set up. We are using a Api gateway(Ocelot) installed on the server Y which will connect to Apis hosted on server X. Server X also has a react application. Server Y is accessible over Internet where as server X is accessible from server Y. Now the Apis are working perfectly but the react application is not opening through the ocelot ( server Y). So question is will ocelot open react application?

1

There are 1 answers

1
Ajay Rao On

Are you deploying the ocelot api gateway in a DMZ and the react-app and web services, database behind the firewall and allow only specific access via browser, mobile.

is this a pwa site, then you should be careful about using ocelot for something that is not intended for. ocelot is an api gateway tool/technology and not unlike nginx that can perform this additional activity of routing the calls to web application and web services.

please check the documentation of ocelot api gateway, if it allows for web application routing as well.