feat: refreshToken cookie 설정

This commit is contained in:
박정민 2024-07-24 15:36:42 +09:00
parent e3faa6608d
commit 2f7e843145

View File

@ -77,7 +77,7 @@ public class UserController {
Cookie refreshCookie = new Cookie("refresh-token", refreshToken);
refreshCookie.setPath("/");
refreshCookie.setHttpOnly(true);
refreshCookie.setSecure(true); // HTTPS에서만 전송되도록 설정
// refreshCookie.setSecure(true); // HTTPS에서만 전송되도록 설정
// refreshCookie.setSameSite(Cookie.SameSite.NONE); // Cross-Origin 요청에 대해 모두 전송
response.addCookie(refreshCookie);