Skip to content

Commit

Permalink
fix: set default cookie sameSite attritube to lax
Browse files Browse the repository at this point in the history
  • Loading branch information
Diizzayy committed Mar 1, 2024
1 parent 575c1d9 commit 4ac3665
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export default defineNuxtModule<ModuleOptions>({
proxyCookies: true,
cookieAttributes: {
maxAge: 60 * 60 * 24 * 7,
secure: process.env.NODE_ENV === 'production'
secure: process.env.NODE_ENV === 'production',
sameSite: 'lax'
},
clientAwareness: false
},
Expand Down

0 comments on commit 4ac3665

Please sign in to comment.