Skip to content
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

Set cookie same site protection to nil #1608

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Conversation

thomasleese
Copy link
Contributor

This is an attempt to fix an issue we're seeing where signing in with Omniauth isn't working in Safari. Setting this value to nil (which means the SameSite attribute is left unset) should in theory be the same as setting to to lax (which means the SameSet attribute is set to Lax), however it seems like Safari treats these differently:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#lax

omniauth/omniauth-oauth2#155 (comment)

Trello Card

This is an attempt to fix an issue we're seeing where signing in with
Omniauth isn't working in Safari. Setting this value to `nil` (which
means the `SameSite` attribute is left unset) should in theory be the
same as setting to to `lax` (which means the `SameSet` attribute is set
to `Lax`), however it seems like Safari treats these differently:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#lax

omniauth/omniauth-oauth2#155 (comment)
@thomasleese thomasleese requested a review from a team as a code owner July 31, 2023 16:43
config/initializers/session_store.rb Dismissed Show resolved Hide resolved
@thomasleese thomasleese merged commit 8679711 into main Aug 1, 2023
12 checks passed
@thomasleese thomasleese deleted the not-explicit-same-site-lax branch August 1, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants