Skip to content

Commit

Permalink
fix: access token cookie의 httpOnly 옵션 false로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yubinquitous committed Nov 15, 2023
1 parent 8e89828 commit 2bcc0cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,15 @@ export class AuthController {

// token을 쿠키에 저장한다.
res.cookie('accessToken', jwtAccessToken, {
// httpOnly: true,
// httpOnly: true, // 자동로그인을 위해 httpOnly를 false로 설정
secure: true,
sameSite: 'none',
expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7),
});

res.cookie('refreshToken', jwtRefreshToken, {
httpOnly: true,
secure: true,
sameSite: 'none',
expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7),
});

const userSigninResponseDto: UserSigninResponseDto = {
Expand Down

0 comments on commit 2bcc0cb

Please sign in to comment.