DEV Community

Shekhar Sahu
Shekhar Sahu

Posted on

Using Rack::Proxy to serve multiple React Apps on the same domain.


We had 4 React apps running on the local server. All apps were running on different ports because we can not start multiple React Apps on the same port. We had to build a single sign-on server. Out of 4 react apps one will be responsible for managing authentication and based on roles or department redirecting to other apps. The Auth app will get token from Auth API and will store it to local storage, and other apps will be using this token for authentication while calling APIs.

Top comments (0)