Skip to content

cookie-octet reality check #2185

Closed as not planned
Closed as not planned
@bagder

Description

@bagder

Hello,

In draft-10 section 4.1.1 we see:

cookie-octet      = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
                   / %x80-FF
                     ; octets excluding CTLs,
                     ; whitespace DQUOTE, comma, semicolon,
                     ; and backslash

This means that space, comma and double-quotes for example are invalid contents in cookie values and names. Why?

In RFC 6265 the same section says:

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

(the difference is %x80-FF which now is explicitly allowed)

Firefox does not ignore all those and claims "parity with Chrome" on this.

If we ignore such cookies, we break compatibility with two major browsers. If we don't, we don't follow the spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions