From 4ac3665687ad6af8214f7bd61e45963801512623 Mon Sep 17 00:00:00 2001 From: Conrawl Rogers Date: Fri, 1 Mar 2024 10:21:39 -0400 Subject: [PATCH] fix: set default cookie sameSite attritube to `lax` --- src/module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/module.ts b/src/module.ts index 667d2dd0..f5cd2b51 100644 --- a/src/module.ts +++ b/src/module.ts @@ -36,7 +36,8 @@ export default defineNuxtModule({ proxyCookies: true, cookieAttributes: { maxAge: 60 * 60 * 24 * 7, - secure: process.env.NODE_ENV === 'production' + secure: process.env.NODE_ENV === 'production', + sameSite: 'lax' }, clientAwareness: false },