|
|
@ -20,7 +20,7 @@ import java.util.List; |
|
|
|
@Configuration |
|
|
|
@Configuration |
|
|
|
public class CorsConfig extends WebMvcConfigurerAdapter { |
|
|
|
public class CorsConfig extends WebMvcConfigurerAdapter { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void addCorsMappings(CorsRegistry registry) { |
|
|
|
public void addCorsMappings(CorsRegistry registry) { |
|
|
|
registry.addMapping("/**") |
|
|
|
registry.addMapping("/**") |
|
|
|
.allowedOrigins("*") |
|
|
|
.allowedOrigins("*") |
|
|
|
.allowCredentials(true) |
|
|
|
.allowCredentials(true) |
|
|
|