Skip to content

Commit

Permalink
chore: same site property in cookie (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
geclos authored Sep 25, 2024
1 parent dbec1c3 commit c9a4d9b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export function LastSeenCommitCookie({
const cookieName = lastSeenCommitCookieName(projectId)

useEffect(() => {
Cookies.set(cookieName, JSON.stringify({ commitUuid, documentUuid }))
Cookies.set(cookieName, JSON.stringify({ commitUuid, documentUuid }), {
sameSite: 'strict',
})
}, [cookieName, commitUuid, documentUuid])

return null
Expand Down

0 comments on commit c9a4d9b

Please sign in to comment.