Skip to content

Commit

Permalink
chore: update cookie settings
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Dec 14, 2024
1 parent 97e8d30 commit 307efc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions apps/romainlanz.com/config/app.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from '@adonisjs/core/http';
import app from '@adonisjs/core/services/app';
import env from '#start/env';

/**
Expand Down Expand Up @@ -34,7 +35,7 @@ export const http = defineConfig({
path: '/',
maxAge: '2h',
httpOnly: true,
secure: false,
sameSite: false,
secure: app.inProduction,
sameSite: 'lax',
},
});
2 changes: 0 additions & 2 deletions apps/romainlanz.com/config/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ export default defineConfig({

cookie: {
path: '/',
httpOnly: true,
sameSite: false,
},

/**
Expand Down

0 comments on commit 307efc9

Please sign in to comment.