fix: update SameSite attribute in setCookie function to None
This commit is contained in:
parent
a2edc214f0
commit
8d1a0660cb
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue