Skip to content

Commit

Permalink
✨ feat: 쿠키 sameSite 옵션 재설정
Browse files Browse the repository at this point in the history
  • Loading branch information
xjfcnfw3 committed Nov 21, 2024
1 parent 1554926 commit d4abdcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/src/configs/session.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};

0 comments on commit d4abdcb

Please sign in to comment.