Skip to content

[fetch] Test that User-Agent is not a forbidden request header - #39301

Merged
andreubotella merged 1 commit into
masterfrom
andreubotella/user-agent-not-a-forbidden-request-header
Mar 31, 2023
Merged

andreubotella merged 1 commit into
masterfrom
andreubotella/user-agent-not-a-forbidden-request-header

Conversation

@andreubotella

@andreubotella andreubotella commented Mar 31, 2023 •

Copy link
Copy Markdown
Member

User-Agent used to be a forbidden request header until it was removed in whatwg/fetch#37. However, this removal was never tested in WPT, and Chrome still treats it as forbidden. This change adds that test.

`User-Agent` used to be a forbidden request header until it was
removed in whatwg/fetch#37. However, this was never added as a WPT
test, and Chrome still treats it as forbidden. This change adds that
test.

@annevk annevk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andreubotella
andreubotella merged commit 55ea64f into master Mar 31, 2023
@andreubotella
andreubotella deleted the andreubotella/user-agent-not-a-forbidden-request-header branch March 31, 2023 09:50
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Apr 8, 2023
…-platform-tests#39301)

`User-Agent` used to be a forbidden request header until it was
removed in whatwg/fetch#37. However, this was never added as a WPT
test, and Chrome still treats it as forbidden. This change adds that
test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants