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' }, /*