Skip to content

Commit

Permalink
chore: 크로스 사이트 쿠키 플래그 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Xvezda committed Apr 28, 2024
1 parent 10f6f94 commit 55bf99c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/api/src/services/auth/v1/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
});
Expand Down Expand Up @@ -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',
},
});
Expand Down

0 comments on commit 55bf99c

Please sign in to comment.