diff --git a/src/main/java/store/itpick/backend/config/WebConfig.java b/src/main/java/store/itpick/backend/config/WebConfig.java index 5f00644..31779fb 100644 --- a/src/main/java/store/itpick/backend/config/WebConfig.java +++ b/src/main/java/store/itpick/backend/config/WebConfig.java @@ -41,15 +41,15 @@ public void addArgumentResolvers(List resolvers) - @Override - public void addCorsMappings(CorsRegistry registry) { - 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); - } +// @Override +// public void addCorsMappings(CorsRegistry registry) { +// 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); +// }