everyone. I\'m new to Angular 2 and Spring Framework. I\'m trying a simple get request with an authorization header (basic auth).
I\'m using Spring Boot (1.2.6.RELEA
This could be very late but this could solve some ones problem, after long hours i found the answer
public class SecurityConfig extends WebSecurityConfigurerAdapter
{
@Override
public void configure( WebSecurity web ) throws Exception
{
web.ignoring().antMatchers( HttpMethod.OPTIONS, "/**" );
}
}
Refer https://stackoverflow.com/a/45830981/3724760