Relative Content

Tag Archive for javaspring-bootcors

Cors issue when deploying application to live server

I am developing a spring boot microservice based application that has the usual API layer that connects to the front-end and dispatches the requests to different microservices. I have developed the security part to have the login into my app and I have set up a CORS filter with it. Locally everything works fine but recently I have deployed the application into a remote server and I can see the front end and the authentications steps (register/login) working fine, however, when doing the post login requests to my api I can see that the prefight requests are working fine but my actual requests fail due to error INVALID CORS REQUEST.