0

I've my dashboard and all in the react frontend which runs at one server(:port) and then I've my expressjs server running at another server(:anotherport). The issue is how do I secure the routes of react app. Like I don't want the user to access the /dashboard route in the frontend react app without authenticating. I do know that in production both ports will be unaccessible, but is there any way to protect react app routes rather leaving it open like that.

0 Answers0