Skip to content

allowing sameSite="none" ? #109

@panva

Description

@panva

Should the cookies module get ready for "none" as same-site value?

Resources:

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.

Bottom line, Chrome will require None as a value to be explicitly used in order to not apply new default eventually. In other words, the current default when sameSite value is not present being the equivalent of a newly specified value None will be Lax.

I believe all that's needed is changing https://github.com/pillarjs/cookies/blob/0.7.3/index.js#L29

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions