From c7aced3082cb5d1d667794bed611b18a378013fe Mon Sep 17 00:00:00 2001 From: choidongkuen Date: Wed, 25 Oct 2023 16:02:45 +0900 Subject: [PATCH] =?UTF-8?q?REFACTOR=20:=20CorsConfig=20-=20Access-Control-?= =?UTF-8?q?Allow-Method=20"*"=20=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/betteriter/global/config/web/CorsConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/betteriter/global/config/web/CorsConfig.java b/src/main/java/com/example/betteriter/global/config/web/CorsConfig.java index f560e71..e9485bc 100644 --- a/src/main/java/com/example/betteriter/global/config/web/CorsConfig.java +++ b/src/main/java/com/example/betteriter/global/config/web/CorsConfig.java @@ -18,7 +18,7 @@ public class CorsConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") - .allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") + .allowedMethods("*") .allowedHeaders("*") .allowedOriginPatterns("*") .exposedHeaders("*")