Skip to content

Commit

Permalink
fix: enable cookies for CORS requests
Browse files Browse the repository at this point in the history
- set `SameSite: none` for testing
  • Loading branch information
cgawron committed Oct 11, 2024
1 parent 0188059 commit 3b5b5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/controller/authentication_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const googleLoginController = (req: Request, res: Response): void => {
// TODO: Remove sameSite: none in production
res
.cookie('access_token',
access_token, { maxAge: 60 * 60 * 24 * 1000, httpOnly: true, secure: true, sameSite: 'none' })
access_token, { maxAge: 60 * 60 * 24 * 1000, httpOnly: true, secure: true, sameSite: 'none', domain: 'gawron.cloud' })
.status(200)
.json({
access_token,
Expand Down

0 comments on commit 3b5b5dc

Please sign in to comment.