Skip to content

Consider Sec-Redirect-* prefix for browser-set request headers #5

@dickhardt

Description

@dickhardt

The Fetch spec forbids JavaScript from setting headers with a Sec- prefix — only the browser can set them. Since the browser-set request headers (Redirect-Origin, Redirect-Query when forwarded) need the same protection, consider using Sec-Redirect-* for the request-side headers.

This would give a clear split:

  • Redirect-Query / Redirect-Path — response headers set by servers
  • Sec-Redirect-Origin / Sec-Redirect-Query — request headers set by browser only

This aligns with existing Fetch spec conventions (Sec-Fetch-Site, Sec-Fetch-Mode, etc.).

Raised during IETF 125 presentation preparation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions