From 738e812f11bb72fbe28adb87136803abaabd0c50 Mon Sep 17 00:00:00 2001 From: Radek <104318242+radekm2000@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:33:19 +0200 Subject: [PATCH] fix cookie not being sent by specifying sameSite to none --- server/ecommerce/src/auth/auth.controller.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/ecommerce/src/auth/auth.controller.ts b/server/ecommerce/src/auth/auth.controller.ts index 85b5137..0728163 100644 --- a/server/ecommerce/src/auth/auth.controller.ts +++ b/server/ecommerce/src/auth/auth.controller.ts @@ -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'); }