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, {
|
||||
httpOnly: true,
|
||||
secure: env.NODE_ENV === "production",
|
||||
sameSite: "strict",
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
expires: add(new Date(), { hours: 1 }),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ import {
|
|||
const cookieOptions: OptionsType = {
|
||||
httpOnly: true,
|
||||
secure: env.NODE_ENV === "production",
|
||||
sameSite: "strict",
|
||||
sameSite: "lax",
|
||||
path: "/",
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue