From 55bf99cb48c790e4ebcaf411c85ab21d53b7000e Mon Sep 17 00:00:00 2001 From: Xvezda Date: Sun, 28 Apr 2024 22:19:41 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=ED=81=AC=EB=A1=9C=EC=8A=A4=20?= =?UTF-8?q?=EC=82=AC=EC=9D=B4=ED=8A=B8=20=EC=BF=A0=ED=82=A4=20=ED=94=8C?= =?UTF-8?q?=EB=9E=98=EA=B7=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/api/src/services/auth/v1/route.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/api/src/services/auth/v1/route.ts b/apps/api/src/services/auth/v1/route.ts index 6aee4cf..a3f6ea8 100644 --- a/apps/api/src/services/auth/v1/route.ts +++ b/apps/api/src/services/auth/v1/route.ts @@ -232,8 +232,9 @@ const withSession: MiddlewareHandler<{ setCookie(c, 'session_id', session, { expires, + sameSite: 'None', + secure: true, ...c.env.DEV ? {} : { - secure: true, domain: '.cheda.kr', }, }); @@ -448,17 +449,19 @@ app.get('/callback', async (c) => { setCookie(c, 'session_id', session, { expires, + sameSite: 'None', + secure: true, ...c.env.DEV ? {} : { - secure: true, domain: '.cheda.kr', }, }); setCookie(c, 'session_sid', securedSession, { httpOnly: true, + sameSite: 'None', + secure: true, expires, ...c.env.DEV ? {} : { - secure: true, domain: '.cheda.kr', }, });