From d4abdcbcc16447b21f53d094638512cc1338ac3a Mon Sep 17 00:00:00 2001 From: kimminsu Date: Thu, 21 Nov 2024 19:03:37 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=EC=BF=A0=ED=82=A4=20sameSi?= =?UTF-8?q?te=20=EC=98=B5=EC=85=98=20=EC=9E=AC=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/configs/session.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/configs/session.config.ts b/packages/backend/src/configs/session.config.ts index 456bda54..310aae4d 100644 --- a/packages/backend/src/configs/session.config.ts +++ b/packages/backend/src/configs/session.config.ts @@ -2,15 +2,15 @@ import { randomUUID } from 'node:crypto'; import * as dotenv from 'dotenv'; dotenv.config(); - +type none = 'none'; export const sessionConfig = { secret: process.env.COOKIE_SECRET || randomUUID().toString(), resave: false, saveUninitialized: false, name: process.env.COOKIE_NAME, - secure: true, - sameSite: 'none', cookie: { maxAge: Number(process.env.COOKIE_MAX_AGE), + secure: true, + sameSite: 'none' as none, }, };