Skip to content

Commit 315febd

Browse files
authored
Merge pull request #33 from codeit-moving/안재민
[안재민] 쿠키 옵션 변경
2 parents 2327d07 + 1739e6c commit 315febd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/config/cookie.config.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@ import { CookieOptions } from "express";
22

33
const accessTokenOption: CookieOptions = {
44
httpOnly: true,
5-
secure: false,
6-
sameSite: "lax",
5+
secure: true,
6+
sameSite: "none",
77
maxAge: 1000 * 60 * 60, // 1시간
8+
// path: "/",
89
};
910

1011
const refreshTokenOption: CookieOptions = {
1112
httpOnly: true,
12-
secure: false,
13-
sameSite: "lax",
13+
secure: true,
14+
sameSite: "none",
1415
maxAge: 1000 * 60 * 60 * 24 * 7, // 7일
16+
// path: "/auth/refresh",
1517
};
1618

1719
const clearCookieOption: CookieOptions = {

0 commit comments

Comments
 (0)