Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Add None as a valid SameSite value #32

Merged

Conversation

eberbis
Copy link
Contributor

@eberbis eberbis commented Jan 14, 2020

Following #12, this PR allows for cookies to have their attribute SameSite set to None.

See: https://tools.ietf.org/html/draft-west-first-party-cookies-07

Chrome will be releasing these changes on February: https://blog.chromium.org/2019/10/developers-get-ready-for-new.html

Following cloudflare#12,
this PR allows for cookies to have their attribute `SameSite` set
to `None`.

See: https://tools.ietf.org/html/draft-west-first-party-cookies-07
@ElvinEfendi
Copy link

👍 would be great to get this merged soon!

@RulerOf
Copy link

RulerOf commented Feb 4, 2020

I'm going to comment here in addition to the +1.

Chrome is going to start defaulting SameSite to Lax in 14 days.

There will probably be more people winding their way in here this week as we scramble to patch this from the Ops side of things.

@jdesgats jdesgats merged commit 766ad8c into cloudflare:master Feb 4, 2020
@jdesgats
Copy link
Contributor

jdesgats commented Feb 4, 2020

Thanks for your PR, merged now! Sorry for the slow reply.

@eberbis
Copy link
Contributor Author

eberbis commented Feb 4, 2020

Thanks a lot @jdesgats!

@ElvinEfendi
Copy link

@jdesgats when are you planning to release this in Luarocks?

@jdesgats
Copy link
Contributor

jdesgats commented Feb 7, 2020

I can tag a release, but we don't officially distribute modules on Luarocks at this time: the module is owned by @calio.

@jdesgats
Copy link
Contributor

@ElvinEfendi I added a SCM rockspec in the repo, so you should be able to install the master version with

luarocks install https://raw.githubusercontent.com/cloudflare/lua-resty-cookie/master/rockspecs/lua-resty-cookie-scm-1.rockspec

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants