coyotte508 HF staff commited on
Commit
fff76f9
1 Parent(s): 3c650ed

🐛 Fix convos in spaces

Browse files
Files changed (1) hide show
  1. src/hooks.server.ts +2 -1
src/hooks.server.ts CHANGED
@@ -11,7 +11,8 @@ export const handle: Handle = async ({ event, resolve }) => {
11
  // Refresh cookie expiration date
12
  event.cookies.set(COOKIE_NAME, event.locals.sessionId, {
13
  path: "/",
14
- sameSite: "lax",
 
15
  secure: !dev,
16
  httpOnly: true,
17
  expires: addYears(new Date(), 1),
 
11
  // Refresh cookie expiration date
12
  event.cookies.set(COOKIE_NAME, event.locals.sessionId, {
13
  path: "/",
14
+ // So that it works inside the space's iframe
15
+ sameSite: "none",
16
  secure: !dev,
17
  httpOnly: true,
18
  expires: addYears(new Date(), 1),