diff --git a/stubs/config.stub b/stubs/config.stub index 5a20de4..6cc5644 100644 --- a/stubs/config.stub +++ b/stubs/config.stub @@ -2,6 +2,7 @@ exports({ to: app.configPath('session.ts') }) }}} import env from '#start/env' +import app from '@adonisjs/core/services/app'; import { defineConfig } from '@adonisjs/session' export default defineConfig({ @@ -30,7 +31,8 @@ export default defineConfig({ cookie: { path: '/', httpOnly: true, - sameSite: false, + secure: app.inProduction, + sameSite: 'lax', }, /**