From e15a1ad90c359765fe37f8b83fd0aafd9fd48a47 Mon Sep 17 00:00:00 2001 From: bflykky Date: Fri, 2 Aug 2024 21:29:52 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=BF=A0=ED=82=A4=20httpOnly,=20secure?= =?UTF-8?q?=20=EC=86=8D=EC=84=B1=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/umc/naoman/global/security/util/CookieUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/umc/naoman/global/security/util/CookieUtils.java b/src/main/java/com/umc/naoman/global/security/util/CookieUtils.java index 54742d7..3ca1634 100644 --- a/src/main/java/com/umc/naoman/global/security/util/CookieUtils.java +++ b/src/main/java/com/umc/naoman/global/security/util/CookieUtils.java @@ -16,8 +16,8 @@ public static void addCookie(HttpServletResponse response, String name, String v cookie.setPath("/"); cookie.setMaxAge(maxAge); // HTTPS 적용 시 함께 적용 - // cookie.setSecure(true); - // cookie.setHttpOnly(true); + cookie.setSecure(true); + cookie.setHttpOnly(true); response.addCookie(cookie); }