mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #2633] [bug]: Unexpected request header modification when using browser extension as proxy #870
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#870
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 @rizdaprasetya on GitHub (Sep 5, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2633
Is there an existing issue for this?
Current behavior
On https://hoppscotch.io/ , using this feature

Use the browser extension to send requests (if present), when I create the following request:CURL equivalent:
Then I inspect the request on the destination, and get the following result instead:
unexpectedly some of the headers are modified:
origin: https://mycustomorigin.comtoorigin: chrome-extension://amknoiejhlmhancpahfcfcfhllgkpbld.user-agent: mycustom-UAtouser-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36referer: https://mycustomreferrer.com/Looks like the Browser Extension is overwriting it. (I guess this is a technical limitation, but can we do anything as workaround?)
Why is it concerning?
user-agent,originetc. .e.g.So having this is important.
Maybe instead of Proxy scotch overwriting the actual
user-agentheader, it should add its own headers e.g.x-requested-via-proxy-agent: Proxyscotch/1.1Steps to reproduce
https://hookbin.com/. e.g. I will create endpoint & get URLhttps://hookb.in/YVkaPWyrBbCQjy0QmeZpUse the browser extension to send requests (if present)Environment
Production
Version
Cloud
@rizdaprasetya commented on GitHub (Sep 5, 2022):
Tried to use proxy as workaround but did not help, Proxy also has its own issue:
@Tineshnehete commented on GitHub (Oct 9, 2022):
Note : This issue is related to hoppscotch-extension
And the issue is opend at https://github.com/hoppscotch/hoppscotch-extension/issues/166
@madhavpcm commented on GitHub (Jun 21, 2023):
I noticed User-Agent being dropped by Chrome browser and it was mentioned that firefox retains that (being a forbidden header). However this doesn't apply to Referer, Referer gets dropped in both firefox and chrome.