cloudflare / lua-resty-cookie

Lua library for HTTP cookie manipulations for OpenResty/ngx_lua
347 stars 160 forks source link

Implement support for SameSite attribute #12

Closed p0pr0ck5 closed 8 years ago

p0pr0ck5 commented 8 years ago

SameSite is an update to RFC6265, allowing servers to assert that user agents should not send certain cookies along with cross-site requests.

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

p0pr0ck5 commented 8 years ago

Whitespace fixed :) Did you still want a separate test for successfully setting the attribute, given that it's included in test 2?

calio commented 8 years ago

It's fine. I've merged your pull request with some small changes. Thank you for your contribution!

lockie commented 4 years ago

Do you guys mind bumping version in rockspec, so SameSite-enabled version is available using luarocks?