Skip to content

The guard of headers created from no-cors request #1074

@yutakahirano

Description

@yutakahirano

In https://fetch.spec.whatwg.org/#dom-request, we set request's headers guard to "request" if init is empty, even when created from a no-cors request. This allows web developers to modify headers that are not CORS-safelisted.

This seems like a spec bug.

See also: #560

@youennf @annevk @jakearchibald

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions