diff --git a/util/cookies.ts b/util/cookies.ts index a9f854c..9d3ee96 100644 --- a/util/cookies.ts +++ b/util/cookies.ts @@ -1,7 +1,6 @@ export const secureCookieOptions = { - httpOnly: true, - path: '/', + maxAge: 60 * 60 * 24, // Cookie expires in 24 hours secure: process.env.NODE_ENV === 'production', - maxAge: 60 * 60 * 24, // This is 24 hours - sameSite: 'lax', // For cross site scripting + httpOnly: true, + sameSite: 'lax', // Prevent sending cookie with images or frames of your content originating on other websites } as const;