Skip to content

Commit

Permalink
Merge pull request #56 from dnd-side-project/feature/#45
Browse files Browse the repository at this point in the history
fix : 쿠키 배포 에러 수정 #45
  • Loading branch information
strangehoon authored Apr 26, 2024
2 parents f4785cb + abfe8d8 commit 3333d2f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public ApiResponse<TokensResponseDto> loginKakao(@RequestParam String code, Http
.sameSite("None")
.httpOnly(true)
.build();
response.addHeader(HttpHeaders.SET_COOKIE, cookie.toString());
response.setHeader("set-cookie", cookie.toString());
return ApiResponse.success(new TokensResponseDto(tokens.accessToken()));
}

Expand All @@ -51,7 +51,7 @@ public ApiResponse<TokensResponseDto> loginGoogle(@RequestParam String code, Htt
.sameSite("None")
.httpOnly(true)
.build();
response.addHeader(HttpHeaders.SET_COOKIE, cookie.toString());
response.setHeader("set-cookie", cookie.toString());
return ApiResponse.success(new TokensResponseDto(tokens.accessToken()));
}

Expand All @@ -65,7 +65,7 @@ public ApiResponse<TokensResponseDto> reissueToken(@RequestBody RefreshTokenRequ
.sameSite("None")
.httpOnly(true)
.build();
response.setHeader(HttpHeaders.SET_COOKIE, cookie.toString());
response.setHeader("set-cookie", cookie.toString());
return ApiResponse.success(new TokensResponseDto(tokens.accessToken()));
}

Expand Down

0 comments on commit 3333d2f

Please sign in to comment.