Skip to content

[rfc6265bis] Cookie parser - UTF-8 chars #1073

Open
@bakulf

Description

@bakulf

Following the RFC6265bis section 4.1.1 a cookie-value can contain only ASCII chars:

   cookie-name       = token
   cookie-value      = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE )
   cookie-octet      = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
                         ; US-ASCII characters excluding CTLs,
                         ; whitespace DQUOTE, comma, semicolon,
                         ; and backslash

Modern browsers do allow UTF-8 chars too and we have web-platform-tests to enforce this behavior.
I would suggest extending the cookie-octet with the range %x80-FF.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions