#3 -- fix config

This commit is contained in:
Anton Romanov 2022-04-20 08:52:19 +04:00
parent 19875f8971
commit c220f816a8

View File

@ -12,7 +12,6 @@ class ControllersConfiguration {
public CorsFilter corsFilter() { public CorsFilter corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration(); CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.addAllowedOrigin("*"); config.addAllowedOrigin("*");
config.addAllowedHeader("*"); config.addAllowedHeader("*");
config.addAllowedMethod("GET"); config.addAllowedMethod("GET");