Skip to content

Commit 5b5928f

Browse files
authored
Fix VA e2e tests when ran locally (#2617)
1 parent 0806874 commit 5b5928f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gitbook/src/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ function getLookupResultForVisitorAuth(
769769
),
770770
options: {
771771
httpOnly: true,
772-
sameSite: 'none',
772+
sameSite: process.env.NODE_ENV === 'production' ? 'none' : undefined,
773773
secure: process.env.NODE_ENV === 'production',
774774
maxAge: 7 * 24 * 60 * 60,
775775
},

0 commit comments

Comments
 (0)