Это та же проблема, что и эта: https://github.com/spring-cloud/spring-cloud-netflix/issues/2754
Workaroud, предложенный Райаном Бакстером, состоит в том, чтобы отключить csrf с
http.csrf().disable()
Я заработал, включив этот WebSecurityConfig , включенный в сервис eureka.
@EnableWebSecurity
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable()
.authorizeRequests()
.anyRequest().authenticated()
.and()
.httpBasic();
}
}