Skip to content

Commit

Permalink
fix issue where cookies couldn't be set when run within iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
nattvara committed Apr 18, 2024
1 parent 2d9c497 commit 5585c54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ function App({ Component, pageProps }: AppProps) {
console.log("Starting new session");

const newSession = await startSession();
Cookies.set("session_id", newSession.public_id, { expires: 365 });
Cookies.set("session_id", newSession.public_id, {
expires: 365,
sameSite: 'None',

Check failure on line 43 in gui/pages/_app.tsx

View workflow job for this annotation

GitHub Actions / Lint Typescript files

Replace `'None'` with `"None"`

Check failure on line 43 in gui/pages/_app.tsx

View workflow job for this annotation

GitHub Actions / Lint Typescript files

Replace `'None'` with `"None"`
secure: true

Check failure on line 44 in gui/pages/_app.tsx

View workflow job for this annotation

GitHub Actions / Lint Typescript files

Insert `,`

Check failure on line 44 in gui/pages/_app.tsx

View workflow job for this annotation

GitHub Actions / Lint Typescript files

Insert `,`
});
setValidSession(true);
};

Expand Down

0 comments on commit 5585c54

Please sign in to comment.