Spaces:
Runtime error
Runtime error
Commit
β’
e518a94
1
Parent(s):
640dc14
π§βπ» Fix cookie settings for some devs
Browse files- src/hooks.server.ts +1 -1
src/hooks.server.ts
CHANGED
@@ -13,7 +13,7 @@ export const handle: Handle = async ({ event, resolve }) => {
|
|
13 |
event.cookies.set(COOKIE_NAME, event.locals.sessionId, {
|
14 |
path: "/",
|
15 |
// So that it works inside the space's iframe
|
16 |
-
sameSite: "none",
|
17 |
secure: !dev,
|
18 |
httpOnly: true,
|
19 |
expires: addYears(new Date(), 1),
|
|
|
13 |
event.cookies.set(COOKIE_NAME, event.locals.sessionId, {
|
14 |
path: "/",
|
15 |
// So that it works inside the space's iframe
|
16 |
+
sameSite: dev ? "lax" : "none",
|
17 |
secure: !dev,
|
18 |
httpOnly: true,
|
19 |
expires: addYears(new Date(), 1),
|