Skip to content

Commit 3efcca5

Browse files
committed
Fix: 프로덕션 환경에 따른 쿠키 도메인 설정 추가 #4
1 parent c73b4d9 commit 3efcca5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/app/api/auth/refresh/route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export async function POST(req) {
3636
httpOnly: true,
3737
secure: isProd,
3838
sameSite: isProd ? 'none' : 'lax',
39+
domain: isProd ? '.gdgocinha.com' : undefined,
3940
});
4041
});
4142
}

src/app/api/signin/route.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export async function POST(request) {
4343
httpOnly: true,
4444
secure: isProd,
4545
sameSite: isProd ? 'none' : 'lax',
46+
domain: isProd ? '.gdgocinha.com' : undefined,
4647
});
4748
});
4849
}

0 commit comments

Comments
 (0)