From c5aedc228a4d70a1f85448ac30ba15d866bca6c8 Mon Sep 17 00:00:00 2001 From: comody Date: Fri, 14 Jul 2023 22:41:02 +0900 Subject: [PATCH] =?UTF-8?q?cors=20content=20type=20=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/teo15/picktimebe/config/WebConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/teo15/picktimebe/config/WebConfig.java b/src/main/java/com/teo15/picktimebe/config/WebConfig.java index 1b9615a..e5d3a08 100644 --- a/src/main/java/com/teo15/picktimebe/config/WebConfig.java +++ b/src/main/java/com/teo15/picktimebe/config/WebConfig.java @@ -11,6 +11,9 @@ public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") .allowedOrigins("https://pick-time.vercel.app", "http://192.168.219.101:3000", "http://localhost:3000") .allowedMethods("*") + .allowedHeaders("Content-Type") + .exposedHeaders("Content-Type") + .allowCredentials(true) .maxAge(3000); } } \ No newline at end of file