Skip to content

Commit

Permalink
fix(cookie): change default config
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Oct 3, 2023
1 parent 458b1b1 commit 5f63011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stubs/config.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
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({
Expand Down Expand Up @@ -30,7 +31,8 @@ export default defineConfig({
cookie: {
path: '/',
httpOnly: true,
sameSite: false,
secure: app.production,
sameSite: 'lax',
},

/**
Expand Down

0 comments on commit 5f63011

Please sign in to comment.