coyotte508 HF staff commited on
Commit
e518a94
β€’
1 Parent(s): 640dc14

πŸ§‘β€πŸ’» Fix cookie settings for some devs

Browse files
Files changed (1) hide show
  1. 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),