I am trying to connect angular 6 project with spring boot application. When I run angular project, it constantly gives this error, although I have installed all the dependen
Issue is with the ordering of filters with spring boot. Add this annotation on your CORSFilter: @Order(Ordered.HIGHEST_PRECEDENCE).
CORSFilter
@Order(Ordered.HIGHEST_PRECEDENCE)
This will make sure that your CORSFilter has highest precendence of execution (most prior).