From ee5c6a8de7dd13c10363d18bc863afae7da853f9 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Tue, 14 Sep 2021 21:06:24 +0200 Subject: [PATCH] Change secure to dev mode --- config/app.ts | 2 +- config/session.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/app.ts b/config/app.ts index 96f1948..224fd57 100755 --- a/config/app.ts +++ b/config/app.ts @@ -105,7 +105,7 @@ export const http: ServerConfig = { path: '/', httpOnly: true, sameSite: 'none', - secure: true + secure: Env.get('NODE_ENV') === 'production' }, /* diff --git a/config/session.ts b/config/session.ts index 99ac4ce..ec8de9d 100755 --- a/config/session.ts +++ b/config/session.ts @@ -78,7 +78,7 @@ const sessionConfig: SessionConfig = { path: '/', httpOnly: true, sameSite: 'none', - secure: true + secure: Env.get('NODE_ENV') === 'production' }, /*