fix: update SameSite attribute in setCookie function to None

This commit is contained in:
Frederico Santos 2024-07-21 14:48:42 +01:00
parent a2edc214f0
commit 8d1a0660cb
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ export const isBeta = import.meta.env.MODE === "beta"; // this checks to see if
export function setCookie(cName: string, cValue: string): void {
const expiration = new Date();
expiration.setTime(new Date().getTime() + 3600000 * 24 * 30 * 3/*7*/);
document.cookie = `${cName}=${cValue};Secure;SameSite=Strict;Path=/;Expires=${expiration.toUTCString()}`;
document.cookie = `${cName}=${cValue};Secure;SameSite=None;Path=/;Expires=${expiration.toUTCString()}`;
}
export function getCookie(cName: string): string {