mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #175] Allow HTTP (not HTTPS) on postwoman.io #68
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#68
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 @NBTX on GitHub (Oct 1, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/175
Originally assigned to: @hosseinnedaee on GitHub.
Currently postwoman.io redirects insecure requests to HTTPS.
Whilst this is often desirable, it prevents us from testing HTTP-only sites.
So essentially, we just need to disable this redirect.
@liyasthomas commented on GitHub (Oct 2, 2019):
Browser will block any resources (scripts , link , iframe , XMLHttpRequest, fetch) to download if original html page is in https and requested resources are in http.
Browser throws an Mixed Content error.
Only work around I found is to tweak browser security policies and allow http requests.
I'll update when I find another tweak.
@hosseinnedaee commented on GitHub (Oct 11, 2019):
Maybe we should use a proxy server. send the request to proxy server fetch HTTP request on the server and then return back the response to Postwoman client.
@liyasthomas commented on GitHub (Oct 11, 2019):
Proxy implementation with Nuxt middleware is planned. @hosseinnedaee would you like to work on this feature?
@hosseinnedaee commented on GitHub (Oct 11, 2019):
@liyasthomas yeah sure
do you have any idea about implementation or I just start to work on it?
@liyasthomas commented on GitHub (Oct 11, 2019):
@hosseinnedaee #2 had an active discussion around implementing middleware for proxy. This not only allow us to request for http but also solves CORS issues. NBTX is busy and couldn't follow this.
Later our team took it to telegram group chat for further discussions. Follow from this thread for discussion https://t.me/postwoman_app/72
https://blog.lichter.io/posts/nuxt-with-an-api/ this article discusses different methods for implementing middleware.
@hosseinnedaee commented on GitHub (Oct 12, 2019):
@liyasthomas Assign me to this issue.
@frankli0324 commented on GitHub (Nov 19, 2019):
websocket support on this?
@liyasthomas commented on GitHub (Nov 19, 2019):
@NBTX is working on proxy mode for WebSocket.
@frankli0324 commented on GitHub (Apr 17, 2020):
need help?
@liyasthomas commented on GitHub (Apr 17, 2020):
@frankli0324 we would love to have this feature implemented. do contribute.
@frankli0324 commented on GitHub (Apr 18, 2020):
will take a look next week... got some schedules this weekend
@frankli0324 commented on GitHub (Apr 28, 2020):
what I've done so far:
I tried to create a single nginx server configuration for anyone who wants to build up their own proxy server installing as less things as possible:
and made a little change
still trying to adopt the original version of http proxy server so we could use a single proxy for both types of requests
@frankli0324 commented on GitHub (Apr 28, 2020):
demo: https://proxy.frankli.site
btw the original proxy is down
@fzyzcjy commented on GitHub (Jul 8, 2020):
Any progress? When developing it is very common to deploy on
localhostwith HTTP not HTTPS. Thus this feature is very desired and will be commonly used.Thanks!
p.s. @franeli0324's site seems to be down.
@liyasthomas commented on GitHub (Jul 8, 2020):
For localhost endpoints, you should install Browser Extension (link in readme). For other non-https endpoints turn-on Proxy from Settings> Proxy.
*The latest Chrome extension is having a minor bug which has been fixed but is currently under review. Kindly use another browser (Firefox) local endpoints.
@fzyzcjy commented on GitHub (Jul 8, 2020):
Thanks! I just searched the plugin but find it 404, so I will turn to firefox or wait
@liyasthomas commented on GitHub (Jul 8, 2020):
Buggy version has been taken down - use Firefox / Proxy mode.
@fzyzcjy commented on GitHub (Jul 8, 2020):
OK thanks!
By the way I find another solution: Disable Chrome's security check for this particular webpage in chrome's setting.
@idling-mind commented on GitHub (Aug 3, 2021):
I'm trying to access an internal http host. Couldnt get it working in anyway. Any suggestions?
@liyasthomas commented on GitHub (Aug 3, 2021):
@idling-mind turn on Proxy Mode from Settings.