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, {
|
response.cookies.set(cookieNames.userId, userId, {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
sameSite: "lax",
|
sameSite: "strict",
|
||||||
|
secure: true,
|
||||||
path: "/"
|
path: "/"
|
||||||
});
|
});
|
||||||
|
|
||||||
response.cookies.set(cookieNames.username, username, {
|
response.cookies.set(cookieNames.username, username, {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
sameSite: "lax",
|
sameSite: "strict",
|
||||||
|
secure: true,
|
||||||
path: "/"
|
path: "/"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue