Skip to content

Commit a21673e

Browse files
use sameSite: none for va cookie (GitbookIO#265)
Co-authored-by: Samy Pessé <samypesse@gmail.com>
1 parent c653742 commit a21673e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ function getLookupResultForVisitorAuth(
587587
value: getVisitorAuthCookieValue(basePath, visitorAuthToken),
588588
options: {
589589
httpOnly: true,
590+
sameSite: 'none',
590591
secure: process.env.NODE_ENV === 'production',
591592
maxAge: 7 * 24 * 60 * 60,
592593
},

0 commit comments

Comments
 (0)