Skip to content

should VARY be a cors-safelisted header? #1365

Open
@wanderview

Description

@wanderview

Currently VARY is not a cors-safelisted header:

https://fetch.spec.whatwg.org/#cors-safelisted-response-header-name

This means that VARY header matching in cache_storage will not work by default for cors responses. Is this intended?

Servers can opt-in to exposing VARY by using access-control-expose-headers, but I wonder if we could/should add VARY to the cors safelist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    security-trackerGroup bringing to attention of security, or tracked by the security Group but not needing response.security/privacyThere are security or privacy implicationstopic: cors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions