From f29286574bebd73c5ec66cd8cb74e5e991f77aff Mon Sep 17 00:00:00 2001 From: Carson Full Date: Wed, 2 Oct 2024 10:42:07 -0500 Subject: [PATCH] Fix session cookie not saving for localhost in Safari & FireFox (#3301) --- src/core/config/config.service.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/config/config.service.ts b/src/core/config/config.service.ts index b42f91bb12..a495bce157 100644 --- a/src/core/config/config.service.ts +++ b/src/core/config/config.service.ts @@ -261,10 +261,12 @@ export const makeConfig = (env: EnvironmentService) => httpOnly: true, // All paths, not just the current one path: '/', - // Require HTTPS (required for SameSite) (ignored for localhost) - secure: true, - // Allow 3rd party (other domains) - sameSite: 'none', + ...(!isDev && { + // Require HTTPS (required for SameSite) + secure: true, + // Allow 3rd party (other domains) + sameSite: 'none', + }), }; })();