SameSite=None is missing from Set-Cookie Headers

Description

Google announced is now requiring an explicit SameSite=None property in order to send cookies on cross site requests.

https://blog.chromium.org/2019/05/improving-privacy-and-security-on-web.html
https://web.dev/samesite-cookies-explained/

With Chrome 76, as described in the second link, with the same-site-by-default-cookies and cookies-without-same-site-must-be-secure flags set, 3rd party cookies from Lucee are no longer being sent unless SameSite=None; Secure was set on the cookie, which is not currently supported in Lucee.

Currently when you run the following code in Lucee with `sameSite = 'None'`:

cfcookie( name = "key", value = "value", domain = 'localtest.me', secure = true, httpOnly = true, sameSite = 'None' );

Lucee sends the following to the browser:

"set-cookie" : "{key}={value};Path=/;Domain=localtest.me;Expires={date};Secure;HTTPOnly"

It doesn't contain `SameSite=None`. It's just missing. This doesn't happen when sending `strict` or `lax`.

This is what it should look like with `SameSite=None` explicitly included:

"set-cookie" : "{key}={value};Path=/;Domain=localtest.me;Expires={date};SameSite=None;Secure;HTTPOnly"

Please advise.

Environment

Using Lucee 5.3.8.18-SNAPSHOT in a Ubuntu Docker container with Commandbox.

Activity

Show:

Pothys - MitrahSoft 6 August 2020 at 05:50

I close this ticket as per the reporter said. This ticket duplicated by the ticket https://luceeserver.atlassian.net/browse/LDEV-2993#icft=LDEV-2993

Tim Badolato 5 August 2020 at 20:40
Edited

It appears this was already addressed here:
https://luceeserver.atlassian.net/browse/LDEV-2993

Please close this ticket.

Duplicate

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 5 August 2020 at 20:29
Updated 1 April 2021 at 16:16
Resolved 6 August 2020 at 05:51