From fa9e2a5a93b11e6a9972f5e797cc709654998fcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=84=9D?= Date: Fri, 15 Nov 2024 19:08:46 +0900 Subject: [PATCH] feat : cors setting off for debugging --- .../itpick/backend/config/WebConfig.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/store/itpick/backend/config/WebConfig.java b/src/main/java/store/itpick/backend/config/WebConfig.java index 450f06a..3370bb3 100644 --- a/src/main/java/store/itpick/backend/config/WebConfig.java +++ b/src/main/java/store/itpick/backend/config/WebConfig.java @@ -43,16 +43,16 @@ public void addArgumentResolvers(List resolvers) - @Override - public void addCorsMappings(CorsRegistry registry) { - log.info("CorsMapping이 호출 되었습니다."); - registry.addMapping("/**") - .allowedOrigins("http://localhost:3000", "http://localhost:5173", "https://localhost:5173", "https://itpick.netlify.app","https://itpick.vercel.app","https://deploy-preview-107--itpick.netlify.app","https://deploy-preview-85--itpick.netlify.app","https://deploy-preview-99--itpick.netlify.app","https://deploy-preview-129--itpick.netlify.app") - .allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH","OPTIONS") - .exposedHeaders("location", "Authorization") - .allowedHeaders("Content-Type", "Authorization", "X-Requested-With", "Accept") - .allowCredentials(true); - } +// @Override +// public void addCorsMappings(CorsRegistry registry) { +// log.info("CorsMapping이 호출 되었습니다."); +// registry.addMapping("/**") +// .allowedOrigins("http://localhost:3000", "http://localhost:5173", "https://localhost:5173", "https://itpick.netlify.app","https://itpick.vercel.app") +// .allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH","OPTIONS") +// .exposedHeaders("location", "Authorization") +// .allowedHeaders("Content-Type", "Authorization", "X-Requested-With", "Accept") +// .allowCredentials(true); +// }