Skip to content

RFC 6265bis: Specify that empty name and empty value cookies should be ignored in 5.4 #1234

@DCtheTall

Description

@DCtheTall

Currently according to the spec, any cookies set with a Set-Cookie header should be ignored if their name and value are empty. However, this check is not applied in section 5.4 of the spec, and as a result the CookieStore had a bug allowed for sites to work around this check.

To me, this is a symptom of a bigger issue: 6265bis treats non-HTTP cookies as an afterthought, e.g. not specifying how non-HTTP cookies should be accessed other than to ignore HttpOnly cookies.

I think it's worth opening a separate issue just to track whether we add the empty-name-empty-value check to 5.4 of 6265bis, and if there are other checks on the Set-Cookie header in 5.3 that are implied in 5.4 but not made explicit.

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