Skip to content

Add Prefer: safe HTTP header #1891

@bvandersloot-mozilla

Description

@bvandersloot-mozilla

What problem are you trying to solve?

Users may not want to have objectionable content displayed in their browser. Two browsers (Firefox and Edge) consume OS signals for web content restriction and convey this information to websites as the user browses via the Prefer HTTP header (RFC 8674).

What solutions exist today?

Content labeling, e.g. the <meta name="rating" content="adult"> as proposed for HTML is one approach for this functionality.

Currently, governments seem to be turning toward cryptographic proofs of age from digital credentials to make similar use cases work. Even with fancy crypto, there are significant privacy risks

How would you solve it?

Currently the spec has the following step

  1. Modify httpRequest’s header list per HTTP. Do not append a given header if httpRequest’s header list contains that header’s name.

I'd propose appending the following step before that step:

"If the user agent has a signal, either from the user directly or the operating system, that the user prefers that the server not respond with content that is designated as objectionable according to the server's definition of the concept, append (Prefer, safe) to httpRequest's header list. [RFC8674]"

We would also need to make it clear that these steps are exclusive operations. This is probably the right interpretation since RFC 8674 is informational.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    addition/proposalNew features or enhancementscompatStandard is not web compatible or proprietary feature needs standardizingneeds implementer interestMoving the issue forward requires implementers to express interesttopic: http

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions