I'm developing an application which has UI from Angular2 and back-end as a rest api which is done on Spring-boot.
When I access the URL to get the list of users, it doesn't fetch all the users. When I check the browser console I get the following error:
Failed to load http://localhost:8080/api/user/getAll: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.
Any input will be appreciated.