I have this in my server side code (spring-mvc):
@CrossOrigin(origins = "*")
@Controller
Yet when I try to make a request using in Angular 4 I get the following error:
XMLHttpRequest cannot load http://localhost:8081/newProject/updateTaskRemarks?goalSectionId=1002&goalSectionSupRemarks=yo. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access. The response had HTTP status code 403.