In ou application we are using
AngularJS, SpringMVC 5,
Tomcat and single-sign-on (SSO). Issue is when the application session is timed-out or Invalid session, the application URL is not redirected back to login page. I am getting CORS error message.
I referred to the below link by changing the dispatcher-servlet and spring-security settings but it did not work.
https://stackoverflow.com/questions/46897681/issue-when-enable-cors-on-spring-security
Here is the sample JavaScript code for Invalid Session and Session timeout, please help how to apply CORS on the below code.
dispatcher-servlet
spring-security