Getting below error when tried to call spring rest end point in angular.
Origin http://localhost:4200 has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
Getting below error when tried to call spring rest end point in angular.
Origin http://localhost:4200 has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
The best solution is to configure Angular to proxying call to the backend.
Take a look at Angular’s Proxing documentation