Skip to content

Commit

Permalink
fix : 쿠키도 재배포된 url로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kyumho kim committed Feb 2, 2024
1 parent 255edfc commit 282a82b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified db_prod.mv.db
Binary file not shown.
6 changes: 3 additions & 3 deletions src/main/java/com/ll/medium/user/service/ProdAuthService.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ public void setTokenInCookie(String accessToken, String refreshToken, HttpServle
ResponseCookie accessTokenCookie = ResponseCookie.from("accessToken", accessToken)
.httpOnly(true)
.path("/")
.domain(".lionshop.me")
.domain(".llcode.me")
.secure(true)
.sameSite("Strict") // SameSite 설정
.build();

ResponseCookie refreshTokenCookie = ResponseCookie.from("refreshToken", refreshToken)
.httpOnly(true)
.path("/")
.domain(".lionshop.me")
.domain(".llcode.me")
.secure(true)
.sameSite("Strict") // SameSite 설정
.build();
Expand All @@ -99,7 +99,7 @@ public ResponseEntity<?> deleteCookie(HttpServletRequest request, HttpServletRes
if (cookie.getName().equals("accessToken") || cookie.getName().equals("refreshToken")) {
ResponseCookie deleteCookie = ResponseCookie.from(cookie.getName(), "")
.httpOnly(true)
.domain(".lionshop.me")
.domain(".llcode.me")
.path("/")
.secure(true)
.sameSite("None") // SameSite 설정
Expand Down

0 comments on commit 282a82b

Please sign in to comment.