From 24e88fa3cfe7d28fa591332e04bfe73b2cd686bb Mon Sep 17 00:00:00 2001 From: hellozo0 Date: Fri, 18 Oct 2024 18:34:03 +0900 Subject: [PATCH] =?UTF-8?q?[hotfix]=20:=20CORS=20preflight=20OPTIONS=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/moddy/server/config/WebConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moddy/server/config/WebConfig.java b/src/main/java/com/moddy/server/config/WebConfig.java index 4968dc00..803b0f01 100644 --- a/src/main/java/com/moddy/server/config/WebConfig.java +++ b/src/main/java/com/moddy/server/config/WebConfig.java @@ -21,7 +21,7 @@ public class WebConfig implements WebMvcConfigurer { public void addCorsMappings(final CorsRegistry registry) { registry.addMapping("/**") .allowedOriginPatterns("*") - .allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name()) + .allowedMethods(HttpMethod.GET.name(), HttpMethod.POST.name(), HttpMethod.PUT.name(), HttpMethod.DELETE.name(), HttpMethod.OPTIONS.name()) .allowedHeaders("Authorization", "Content-Type") .allowCredentials(true) .maxAge(3000);