From f08012f52a1d472104fa02e4865193c43aa17e6f Mon Sep 17 00:00:00 2001 From: stae1102 Date: Sun, 3 Mar 2024 17:30:59 +0900 Subject: [PATCH] fix: add domain to cookie --- src/auth/oauth.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/auth/oauth.service.ts b/src/auth/oauth.service.ts index 7b46446..589a16e 100644 --- a/src/auth/oauth.service.ts +++ b/src/auth/oauth.service.ts @@ -155,11 +155,13 @@ export class OAuthService { const cookieOption: CookieOptions = process.env.NODE_ENV === 'prod' ? { + domain: process.env.FRONTEND_URL, httpOnly: true, sameSite: 'none', secure: true, } : { + domain: process.env.FRONTEND_URL, httpOnly: true, sameSite: 'lax', secure: false,