feat: refreshToken cookie 설정
This commit is contained in:
parent
e3faa6608d
commit
2f7e843145
@ -77,7 +77,7 @@ public class UserController {
|
|||||||
Cookie refreshCookie = new Cookie("refresh-token", refreshToken);
|
Cookie refreshCookie = new Cookie("refresh-token", refreshToken);
|
||||||
refreshCookie.setPath("/");
|
refreshCookie.setPath("/");
|
||||||
refreshCookie.setHttpOnly(true);
|
refreshCookie.setHttpOnly(true);
|
||||||
refreshCookie.setSecure(true); // HTTPS에서만 전송되도록 설정
|
// refreshCookie.setSecure(true); // HTTPS에서만 전송되도록 설정
|
||||||
// refreshCookie.setSameSite(Cookie.SameSite.NONE); // Cross-Origin 요청에 대해 모두 전송
|
// refreshCookie.setSameSite(Cookie.SameSite.NONE); // Cross-Origin 요청에 대해 모두 전송
|
||||||
|
|
||||||
response.addCookie(refreshCookie);
|
response.addCookie(refreshCookie);
|
||||||
|
Loading…
Reference in New Issue
Block a user