-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: Safari magic link redirect on MacOS #4464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ export const DEFAULT_SESSION_DURATION_SECONDS = 31_556_952; | |
| export const sessionStorage = createCookieSessionStorage({ | ||
| cookie: { | ||
| name: "__session", | ||
| sameSite: "lax", | ||
| sameSite: env.NODE_ENV === "production" ? "none" : "lax", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Login sessions become unreliable on older Safari and lose cross-site protection The login cookie is now sent on every cross-site request in production ( Why SameSite=None does not fix the magic-link case but does break other behaviourA magic-link click is a top-level GET navigation, which is already allowed by
Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 Self-hosted HTTP deployments and SameSite=None
Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| path: "/", | ||
| httpOnly: true, | ||
| secrets: [env.SESSION_SECRET], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔍 Server-change note appears to be missing for this webapp-only change
CONTRIBUTING.md requires a
.server-changes/markdown file when a PR only touches server components underapps/webapp/. This PR only modifiesapps/webapp/app/services/sessionStorage.server.tsand does not appear to add one, so the fix would not show up in release notes.Was this helpful? React with 👍 or 👎 to provide feedback.