There is no problem in your codes but to check and review please answer these two questions to share the problem with us:
- Is there any bean definition for CORS in your code(a class with @Configuration annotation)?
- please check with @CrossOrigin without any parameter(just to review and find the reason)
please send a feed back...