I am working on a project which uses React and Node.js. I am using React-router for the redirection of different paths, but I am concerned about the security.
If I have understand things correctly React-router operates on the frontend, so basically it should be pretty easy to edit the frontend code and get access to the paths? Or am I missing something?
I am doing authentication and I have secured the API endpoints so the user cant load any data, but I am concerned that the user could still see the paths without the data. I checked some tutorials and most of them says that the redirections is just for UX purposes, but I need them to also be secure.
Does it make sense and is there any tutorials out there where they show how to redirect in react in a secure way (thats not editable for anyone on the frontend)?