From 562a7f1157ec14975e673b9e1d3ff387d670e49f Mon Sep 17 00:00:00 2001 From: suhyeon7497 Date: Thu, 14 Nov 2024 19:36:36 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20cors=20=EC=84=A4=EC=A0=952?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/team7/inplace/security/config/CorsConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/team7/inplace/security/config/CorsConfig.java b/src/main/java/team7/inplace/security/config/CorsConfig.java index 3eaf1b9a..91c296b2 100644 --- a/src/main/java/team7/inplace/security/config/CorsConfig.java +++ b/src/main/java/team7/inplace/security/config/CorsConfig.java @@ -32,7 +32,7 @@ public CorsFilter corsFilter() { config.addAllowedHeader("PATCH"); config.addAllowedMethod("HEAD"); config.setMaxAge(3600L); - config.setExposedHeaders(Arrays.asList("Location")); + config.setExposedHeaders(Arrays.asList("Location", "Set-Cookie")); source.registerCorsConfiguration("/**", config); return new CorsFilter(source); }