How to secure my redirected link from Spring Boot?
I am using Spring Boot Security for authorization and authentication in my REST service. It uses database user data and sessionID cookie. In a Spring web controller I have a redirection to my Angular project site localhost:4200.
Can I secure that site (http://localhost:4200/) , so that only with sessionID you can access it, so you can not go directly there, only through spring’s url localhost:8080 and login form? Would saving sessionid in localstorage in Java, sending it with redirection and then in Angular read it from local storage and compare it with one from request work?