Improve cookie settings
This commit is contained in:
parent
fb44139e1d
commit
3adf7b7f74
1 changed files with 4 additions and 2 deletions
|
|
@ -72,13 +72,15 @@ export const createSfAuthCallbackRoute = (
|
|||
|
||||
response.cookies.set(cookieNames.userId, userId, {
|
||||
httpOnly: true,
|
||||
sameSite: "lax",
|
||||
sameSite: "strict",
|
||||
secure: true,
|
||||
path: "/"
|
||||
});
|
||||
|
||||
response.cookies.set(cookieNames.username, username, {
|
||||
httpOnly: true,
|
||||
sameSite: "lax",
|
||||
sameSite: "strict",
|
||||
secure: true,
|
||||
path: "/"
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue