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
proposal: net/http: support partitioned cookies #62490
Comments
SameSite=None
cookies and add partitioned cookies
Sure, updated. |
Change https://go.dev/cl/526435 mentions this issue: |
We don't want a deprecation notice on Also, partitioned cookies use Adding a
|
Fixes golang#62490 net/http: fix test case for TestCookieValid net/http: add missing continue for readSetCookies
@neild I'm agree with you. my pr just adds a note for the SameSiteNoneMode. |
Any updates on this proposal? It would be useful for something I'm trying to work on. |
What more needs to be done to have this proposal accepted? The associated commit explains the changes clearly. |
Supporting the partitioned cookie attribute without actually implementing the cookie jar changes implementing the semantics of the partitioning this attribute signals sounds at least incomplete or even dangerous from a security perspective to me. So a more complete proposal should outline the full semantics and amount of changes to implement the support. Not only the encoding and decoding, but also creating the key to address the cookie jar elements and storing as well as accessing them in http.Client.Jar to reap all the benefits of such cookies. |
I can't understand why it's related to http.Client.Jar. the cookies could be parsed by |
This proposal implements server-side support. Client-side support is intended for browsers to block cross-site tracking. It's unclear if this use case would be meaningful for a Go HTTP client. If someone made an end user web browser in Go there is a lot they would have to add on to the existing http client such as this and CORS. |
I think it's not feasible to add it to http.Client.Jar.
there should no scenes like above in the go http client. |
Since Chrome drops support for SameSite=None cookies, aka third-party cookies, net/http package needs to add Partitioned field to the type Cookie, and add a deprecated message for SameSiteNoneMode
ref:
https://developer.chrome.com/docs/privacy-sandbox/third-party-cookie-phase-out/
The text was updated successfully, but these errors were encountered: