Skip to content

Host-only cookie retrieval #3437

@will-bartlett

Description

@will-bartlett

FedCM has some additional privacy complexities that are motivated by the current cookie retrieval algorithm. In particular, FedCM retrieves metadata from the registrable domain rather than the origin (like most specifications) because cookies are scoped to registrable domains and not origins. See FedCM section 5.3.1 Manifest Fingerprinting for motivation and w3c-fedid/FedCM#809 and w3c-fedid/FedCM#821 for the problems this causes and an attempt to resolve them.

Some participants observed that only retrieving host-only cookies would resolve this issue cleanly. FedCM could switch to metadata on the origin (like most specifications) if cookies were origin scoped.

Proposal: The retrieve cookie algorithm from draft-ietf-httpbis-layered-cookies takes five inputs ("To Retrieve Cookies given a boolean isSecure, host host, URL path path, boolean httpOnlyAllowed, and string sameSite"). Add a sixth input boolean originScoped and update the retrieval algorithm such that, when originScoped is true, cookies are only retrieved if the host-only flag is true or if host exact-matches cookie's host.

Once in the cookie specification, fetch can consume it as a new credential mode, and FedCM consume it through fetch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions