Skip to content

Commit

Permalink
fix: samesite, secure 주석
Browse files Browse the repository at this point in the history
  • Loading branch information
tomatozil committed Apr 5, 2024
1 parent 32f88f6 commit d3a6a1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export class AuthController {
// token을 쿠키에 저장한다.
res.cookie('accessToken', jwtAccessToken, {
// httpOnly: true, // 자동로그인을 위해 httpOnly를 false로 설정
secure: true,
sameSite: 'none',
// secure: true,
// sameSite: 'none',
expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 1),
});
}
Expand Down Expand Up @@ -91,8 +91,8 @@ export class AuthController {
// token을 쿠키에 저장한다.
res.cookie('accessToken', jwtAccessToken, {
// httpOnly: true, // 자동로그인을 위해 httpOnly를 false로 설정
secure: true,
sameSite: 'none',
// secure: true,
// sameSite: 'none',
expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 1),
});
}
Expand Down

0 comments on commit d3a6a1f

Please sign in to comment.