use samesite none for tracking cookie (#2299)

This commit is contained in:
Taran Vohra
2024-09-17 11:57:28 +05:30
committed by GitHub
parent 4c19014dcd
commit 43f696c4a8
+2
View File
@@ -71,6 +71,8 @@ async function fetchVisitorID(): Promise<string> {
export function setCookiesTracking(enabled: boolean) {
cookies.set(GRANTED_COOKIE, enabled ? 'yes' : 'no', {
expires: 365,
sameSite: 'none',
secure: true,
});
}