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

SameSiteNone legacy browser workaround does not work on iOS12 #1907

Closed
pjediny opened this issue Jun 15, 2020 · 0 comments · Fixed by #1908
Closed

SameSiteNone legacy browser workaround does not work on iOS12 #1907

pjediny opened this issue Jun 15, 2020 · 0 comments · Fixed by #1908

Comments

@pjediny
Copy link
Contributor

pjediny commented Jun 15, 2020

Describe the bug
The #1810 incorrectly implements https://web.dev/samesite-cookie-recipes/#handling-incompatible-clients

Notice Set-cookie: 3pcookie-legacy=value; Secure the cookie does not have the SameSite attribute present. The http.SameSiteDefaultMode used in hydra implementation results in attribute without the value, see https://github.com/golang/go/blob/release-branch.go1.14/src/net/http/cookie.go#L221

That triggers the problems with the older iOS and macOS versions, as Apple did not follow the https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00#section-4.1 see https://trac.webkit.org/browser/webkit/trunk/Source/WebInspectorUI/UserInterface/Models/Cookie.js?rev=239226#L118

Expected behavior
The legacy cookie should not have the SameSite attribute sent at all.

Environment
iOS12 Safari web browser

Additional context
#1810 #1753

aeneasr pushed a commit that referenced this issue Jun 16, 2020
Enables legacy compatibility on iOS version < 13 and macOS version < 10.15

#1810 incorrectly implements https://web.dev/samesite-cookie-recipes/#handling-incompatible-clients

Notice Set-cookie: 3pcookie-legacy=value; Secure the cookie does not have the SameSite attribute present. The http.SameSiteDefaultMode used in hydra implementation results in attribute without the value, see https://github.com/golang/go/blob/release-branch.go1.14/src/net/http/cookie.go#L221

That triggers the problems with the older iOS and macOS versions, as Apple did not follow the https://tools.ietf.org/html/draft-ietf-httpbis-cookie-same-site-00#section-4.1 see https://trac.webkit.org/browser/webkit/trunk/Source/WebInspectorUI/UserInterface/Models/Cookie.js?rev=239226#L118

Closes: #1907
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 a pull request may close this issue.

1 participant