Configure CORS in default security configuration for MVC
Fixes gh-11987
This commit is contained in:
@@ -44,6 +44,7 @@ class ManagementWebSecurityConfigurerAdapter extends WebSecurityConfigurerAdapte
|
||||
requests.requestMatchers(EndpointRequest.to(HealthEndpoint.class, InfoEndpoint.class)).permitAll();
|
||||
requests.anyRequest().authenticated();
|
||||
});
|
||||
http.cors();
|
||||
http.formLogin(Customizer.withDefaults());
|
||||
http.httpBasic(Customizer.withDefaults());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user