|
|
|
|
@ -13,14 +13,18 @@ public class WebConfiguration implements WebMvcConfigurer {
|
|
|
|
|
public void addCorsMappings(CorsRegistry registry) {
|
|
|
|
|
registry.addMapping("/**")
|
|
|
|
|
.allowedOrigins("*")
|
|
|
|
|
.allowedMethods(HttpMethod.GET.name(),
|
|
|
|
|
.allowedMethods(
|
|
|
|
|
HttpMethod.GET.name(),
|
|
|
|
|
HttpMethod.HEAD.name(),
|
|
|
|
|
HttpMethod.POST.name(),
|
|
|
|
|
HttpMethod.PUT.name(),
|
|
|
|
|
HttpMethod.DELETE.name())
|
|
|
|
|
.allowedHeaders("cuuva-jwt", "Content-Type", "Authorization")
|
|
|
|
|
.exposedHeaders("cuuva-jwt") // 응답에서 노출 필요 시
|
|
|
|
|
.maxAge(3600);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
|
|
registry.addInterceptor(new LoggingInterceptor())
|
|
|
|
|
|