mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1423] Proxy server works in the url but not if in the settings #457
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#457
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 @nathanielread on GitHub (Jan 11, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1423
I setup my own docker based proxy server. When I put the proxy server url into the hoppscotch request url, it works. Example:
https://cors.website.com/https://google.com
When I put the proxy server url (https://cors.website.com/) in the proxy config of hoppscotch and leave it out of the request url, it gives me this error:
I'm running hoppscotch in docker, manually build through the Dockerfile, behind jwilder nginx-proxy.
Not a huge deal, but any thoughts?
@liyasthomas commented on GitHub (Jan 11, 2021):
In Settings > Proxy, under the hood Hoppscotch uses a custom proxy server. You can build it and host it on your own to use it along with any Hoppscotch instances. Instructions can be found at hoppscotch/proxyscotch. Also there's a docker container available: https://hub.docker.com/r/hoppscotch/proxyscotch.
@nathanielread commented on GitHub (Jan 11, 2021):
Yes, I built my own, not based on proxyscotch, though.
I built it based on this one: https://hub.docker.com/r/redocly/cors-anywhere
And when I put that proxy server url in the hoppscotch settings, it doesn't work. Is that because only the proxyscotch server works in that config?
@liyasthomas commented on GitHub (Jan 12, 2021):
Yes
Hoppscotch Proxy mode is tailored to work only with Proxyscotch. Alternatively you can install our browser extensions to bypass CORS restrictions.
@nathanielread commented on GitHub (Jan 12, 2021):
Thanks! I pulled the docker image, put it behind jwilder nginx-proxy and the proxy settings in hoppscotch works.
Any advice on setting a proxyscotch token in docker-compose? Env variable?
@liyasthomas commented on GitHub (Jan 12, 2021):
As per Proxyscotch Docs,
I'm not a docker expert 🙏 but you can find a way to pass env variables in docker compose from here and here.