mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 17:26:03 +03:00
[GH-ISSUE #1956] Failed to set header User-Agent #630
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#630
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WqyJh on GitHub (Nov 16, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1956
Describe the bug
I've specified an User-Agent header in my request, but the server got User-Agent of Chrome browser.
To Reproduce
Steps to reproduce the behavior:
3serv.py, run withpython3 3serv.py, you'll get an http server listening on port 8000 which print header when received requests.Expected behavior
Custom User-Agent show on http server.
@liyasthomas commented on GitHub (Nov 16, 2021):
User-Agentis one among the other Forbidden header names. Though Firefox 43 and above supports setting theUser-Agentheader from the client-side, and Chrome will silently drop the header from fetch requests.Since this is a browser-defined security policy and is not directly connected with Hoppscotch - I'm choosing this issue. I was able to set custom user-agent in Hoppscotch from the Firefox browser. Simply install our Firefox extension interceptor and run the request with a custom
User-Agentheader and it should work.Screenshot