fix: change SameSite cookie attribute from 'strict' to 'lax' for better compatibility
This commit is contained in:
parent
8d6eeb49c5
commit
39f6cdfdbd
2 changed files with 2 additions and 2 deletions
|
|
@ -140,7 +140,7 @@ const refreshAuthToken = async (
|
||||||
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, newAccessToken, {
|
response.cookies.set(ACCESS_TOKEN_COOKIE_NAME, newAccessToken, {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: env.NODE_ENV === "production",
|
secure: env.NODE_ENV === "production",
|
||||||
sameSite: "strict",
|
sameSite: "lax",
|
||||||
path: "/",
|
path: "/",
|
||||||
expires: add(new Date(), { hours: 1 }),
|
expires: add(new Date(), { hours: 1 }),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ import {
|
||||||
const cookieOptions: OptionsType = {
|
const cookieOptions: OptionsType = {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: env.NODE_ENV === "production",
|
secure: env.NODE_ENV === "production",
|
||||||
sameSite: "strict",
|
sameSite: "lax",
|
||||||
path: "/",
|
path: "/",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue