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

Support the partitioned attribute in cookie settings #706

Closed
dysbulic opened this issue Feb 12, 2024 · 1 comment
Closed

Support the partitioned attribute in cookie settings #706

dysbulic opened this issue Feb 12, 2024 · 1 comment

Comments

@dysbulic
Copy link

Google Chrome is in the process of phasing out third-party cookies.

There are a couple alternatives, one of the simplest being CHIPS: Cookies Having Independent Partitioned State which is triggered by the addition of a Partitioned attribute in the cookie header.

The documentation gives the following as an example compliant cookie:

Set-Cookie: __Host-name=value; Secure; Path=/; SameSite=None; Partitioned;

iron-session should support setting this attribute.

@dysbulic
Copy link
Author

Actually, as I dig deeper, I find that the serialization of the cookie is handled by the cookies library which has support for partitioned as of the latest version.

For some reason the attribute doesn't work when specified in my cookieOptions when imported into Deno from https://esm.sh/iron-session@8.0.1 even though it imports the most recent version of cookies.

I have gotten it to set though on the example app included with iron-session.

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

No branches or pull requests

1 participant