From a4a4e05def177debc1e6881f19fd7b605b9555b5 Mon Sep 17 00:00:00 2001 From: UJeans Date: Tue, 5 Nov 2024 14:31:50 +0900 Subject: [PATCH] =?UTF-8?q?[#36]feat:=20cors=20=ED=97=88=EC=9A=A9=ED=97=A4?= =?UTF-8?q?=EB=8D=94=20=EB=B2=94=EC=9C=84=EC=97=90=20token=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/soma/edupigateway/config/CorsConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/soma/edupigateway/config/CorsConfig.java b/src/main/java/soma/edupigateway/config/CorsConfig.java index 88a386b..2291d36 100644 --- a/src/main/java/soma/edupigateway/config/CorsConfig.java +++ b/src/main/java/soma/edupigateway/config/CorsConfig.java @@ -30,7 +30,7 @@ public CorsConfigurationSource corsConfigurationSource() { ); configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS")); configuration.setAllowedHeaders( - List.of("Content-Type", "Authorization", "Accept", "Access-Control-Allow-Origin")); + List.of("Content-Type", "Authorization", "Accept", "Access-Control-Allow-Origin", "token")); configuration.setExposedHeaders(List.of("Content-Type")); configuration.setAllowCredentials(true); configuration.setMaxAge(3600L);