Is it possible to disable Spring Security for a type of HTTP Method?
We have a Spring REST application with services that require Authorization token to be attached
In some cases, it is needed add configuration.setAllowedHeaders(Arrays.asList("Content-Type")); to corsConfigurationSource() when using WebSecurityConfigurerAdapter to solve the cors problem.
configuration.setAllowedHeaders(Arrays.asList("Content-Type"));
corsConfigurationSource()
WebSecurityConfigurerAdapter