Skip to content

Commit

Permalink
fix cookie not being sent by specifying sameSite to none
Browse files Browse the repository at this point in the history
  • Loading branch information
radekm2000 committed Jun 13, 2024
1 parent 65a8960 commit 738e812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/ecommerce/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export class AuthController {
response.cookie('refreshToken', refreshToken, {
httpOnly: true,
maxAge: 60 * 60 * 1000,
secure: true,
sameSite: 'none',
});
response.redirect('https://exquisite-pasca-338883.netlify.app');
}
Expand Down

0 comments on commit 738e812

Please sign in to comment.