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

Add support for Partitioned cookie attribute #1225

Closed
wants to merge 1 commit into from

Conversation

sneako
Copy link
Contributor

@sneako sneako commented Jun 10, 2024

Add support for Partitioned cookie attribute

This attribute is used for partitioned cookies, aka Cookies Having
Independent Partitioned State (CHIPS).

This is a new feature being developed by Chrome/Chromium which was
enabled by default starting in version 114 (current latest version is
126).

The goal of this feature is to allow third party cookies without
allowing these third parties to track users across domains.

https://developers.google.com/privacy-sandbox/3pcd/chips
https://developer.mozilla.org/en-US/docs/Web/Privacy/Privacy_sandbox/Partitioned_cookies

Do the Plug maintainers think this feature is stable/supported enough for adoption by Plug?

This attribute is used for partitioned cookies, aka Cookies Having
Independent Partitioned State (CHIPS).

This is a new feature being developed by Chrome/Chromium which was
enabled by default starting in version 114 (current latest version is
126).

The goal of this feature is to allow third party cookies without
allowing these third parties to track users across domains.

https://developers.google.com/privacy-sandbox/3pcd/chips
https://developer.mozilla.org/en-US/docs/Web/Privacy/Privacy_sandbox/Partitioned_cookies
@josevalim
Copy link
Member

Hi @sneako!

We typically only adopt features once they have been a standard accept by all browsers, because they tend to change (sometimes quite a lot) until they get standardized. Could you use the :extra option when setting the cookie meanwhile? https://hexdocs.pm/plug/Plug.Conn.html#put_resp_cookie/4-options

@sneako
Copy link
Contributor Author

sneako commented Jun 10, 2024

Ahh yes, sorry I missed the :extra option that handles this perfectly for us. Definitely makes sense to wait, thank you!

@sneako sneako closed this Jun 10, 2024
@sneako sneako deleted the support-chips branch June 10, 2024 12:20
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.

2 participants