Skip to content

Commit

Permalink
fix : cookie domain 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 committed Feb 26, 2024
1 parent 0853150 commit 6c638a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ public ResponseEntity<TokenResponse> login(
SecurityUtils.setLocalCookie(
"REFRESH_TOKEN", tokenResponse.getRefreshToken()))
.toString());
response.addHeader("Set-Cookie",
response.addHeader(
"Set-Cookie",
new StringBuilder(
SecurityUtils.setProdCookie(
"ACCESS_TOKEN", tokenResponse.getAccessToken())
.toString())
SecurityUtils.setProdCookie(
"ACCESS_TOKEN", tokenResponse.getAccessToken())
.toString())
.append("; ")
.append(
SecurityUtils.setProdCookie(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static ResponseCookie setLocalCookie(String name, String value) {
.httpOnly(true)
.maxAge(2592000)
.path("/")
.domain("localhost")
.domain("http://localhost")
.build();
}

Expand All @@ -21,7 +21,7 @@ public static ResponseCookie setProdCookie(String name, String value) {
.httpOnly(true)
.maxAge(2592000)
.path("/")
.domain("recruit.econovation.kr")
.domain("https://recruit.econovation.kr")
.build();
}
}

0 comments on commit 6c638a2

Please sign in to comment.