[Vuejs]-Error deploying Vue.js+Spring Boot +Graddle app in Heroku .Cors No 'Access-Control-Allow-Origin' Error

-1👍

Spring boot will block all the request coming from different origin, hence all your request is getting blocked.

Ways to get pass this

  1. Add proxy in your Vue.js to avoid – Preferred way
  2. Use @CrossOrigin("your-origin") on your controller
  3. Implement a spring boot filter which will intercept the request and add "Access-Control-Allow-Origin" header in your request

Leave a comment