From 7241fbe7bc6cd2d563c3267870675f2388111d89 Mon Sep 17 00:00:00 2001 From: Kwon Min A Date: Tue, 21 Nov 2023 17:57:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=20Access-Control-Allow-Credentials?= =?UTF-8?q?=EB=A5=BC=20true=EB=A1=9C=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/efub/dhs/global/config/CorsConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/efub/dhs/global/config/CorsConfig.java b/src/main/java/com/efub/dhs/global/config/CorsConfig.java index d3b472d..e43cf06 100644 --- a/src/main/java/com/efub/dhs/global/config/CorsConfig.java +++ b/src/main/java/com/efub/dhs/global/config/CorsConfig.java @@ -14,7 +14,8 @@ public void addCorsMappings(CorsRegistry registry) { "https://api.daehaengsa.kro.kr", "http://localhost:3000", "https://daehaengsa.kro.kr") - .allowedMethods("GET", "POST") + .allowedMethods("*") + .allowCredentials(true) .maxAge(3000); } }