express icon indicating copy to clipboard operation
express copied to clipboard

Allow response cookie sameSite value "none"

Open misschak opened this issue 7 years ago • 3 comments

https://web.dev/samesite-cookies-explained

Finally there is the option of not specifying the value which has previously been the way of implicitly stating that you want the cookie to be sent in all contexts. In the latest draft of RFC6265bis this is being made explicit by introducing a new value of SameSite=None. This means you can use None to clearly communicate you intentionally want the cookie sent in a third-party context.

Currently setting sameSite to none will produce TypeError: option sameSite is invalid

misschak avatar May 15 '19 03:05 misschak

This is the PR: https://github.com/jshttp/cookie/pull/89

dougwilson avatar May 15 '19 03:05 dougwilson

Thanks much!

misschak avatar May 15 '19 04:05 misschak

No problem! The PR has been merged and released upstream. I have included the updated dependency in the 4.17 branch, due for imminent release. https://github.com/expressjs/express/pull/3778

dougwilson avatar May 16 '19 14:05 dougwilson