[GH-ISSUE #3764] [feature]: Better support for localhost testing with Proxy enabled #1311

Closed
opened 2026-03-16 19:46:58 +03:00 by kerem · 7 comments
Owner

Originally created by @Leon-Luu on GitHub (Jan 19, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3764

Originally assigned to: @AndrewBastin on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Summary

When Proxy middleware is enabled, it is not able to send enpoints with localhost resulting a window with "Could not send request". The users has to choose "None" or "Browser extension" to be able to send to the localhost.
image

The feature request is Hoppscotch to automatic detect this and temporary disable the Proxy for allowing testing on localhost with the Proxy enabled. Users shall not need disable the Proxy settings and enable again.

Why should this be worked on?

  1. Better utilization of the Proxy
  2. Users wouldn't be confused
Originally created by @Leon-Luu on GitHub (Jan 19, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3764 Originally assigned to: @AndrewBastin on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Summary When Proxy middleware is enabled, it is not able to send enpoints with **localhost** resulting a window with "Could not send request". The users has to choose "None" or "Browser extension" to be able to send to the localhost. <img width="687" alt="image" src="https://github.com/hoppscotch/hoppscotch/assets/88329746/7806306a-d1da-43d7-b338-64398b400a7f"> The feature request is Hoppscotch to automatic detect this and temporary disable the Proxy for allowing testing on localhost with the Proxy enabled. Users shall not need disable the Proxy settings and enable again. ### Why should this be worked on? 1) Better utilization of the Proxy 2) Users wouldn't be confused
kerem 2026-03-16 19:46:58 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@liyasthomas commented on GitHub (Jan 19, 2024):

Can you try our alpha release candidate for desktop app let us know.

https://hoppscotch.com/download

<!-- gh-comment-id:1899902106 --> @liyasthomas commented on GitHub (Jan 19, 2024): Can you try our alpha release candidate for desktop app let us know. https://hoppscotch.com/download
Author
Owner

@Leon-Luu commented on GitHub (Jan 19, 2024):

@liyasthomas It is the same for "alpha release candidate desktop" one, not able to send on localhost without choosing to native

image
<!-- gh-comment-id:1900449858 --> @Leon-Luu commented on GitHub (Jan 19, 2024): @liyasthomas It is the same for "alpha release candidate desktop" one, not able to send on localhost without choosing to native <img width="428" alt="image" src="https://github.com/hoppscotch/hoppscotch/assets/88329746/ce0c732e-1814-4174-9254-40476a1bfd4d">
Author
Owner

@liyasthomas commented on GitHub (Jan 19, 2024):

This is an expected behaviour. You should set the interceptor to Native on desktop app or Browser Extension on web app.

I'd recommend you to use desktop app with Native interceptor since it support both locally hosted and deployed APIs.

<!-- gh-comment-id:1900499328 --> @liyasthomas commented on GitHub (Jan 19, 2024): This is an expected behaviour. You should set the interceptor to **Native** on desktop app or **Browser Extension** on web app. I'd recommend you to use desktop app with **Native** interceptor since it support both locally hosted and deployed APIs.
Author
Owner

@AllenAttuned commented on GitHub (Feb 6, 2024):

A somewhat related issue I have is with requests to local endpoints which have hostnames (ie: mappings defined in /etc/hosts). Our setup needs requires hostnames for SSL, so we use Nginx to reverse proxy our requests to the respected services. It works in the browser (or PWA) with the extension, but it would be nice if it also worked natively, especially since cookie support is limited to the native application.

<!-- gh-comment-id:1928984889 --> @AllenAttuned commented on GitHub (Feb 6, 2024): A somewhat related issue I have is with requests to local endpoints which have hostnames (ie: mappings defined in `/etc/hosts`). Our setup needs requires hostnames for SSL, so we use Nginx to reverse proxy our requests to the respected services. It works in the browser (or PWA) with the extension, but it would be nice if it also worked natively, especially since cookie support is limited to the native application.
Author
Owner

@ash-eng-spin commented on GitHub (Feb 15, 2024):

This is an expected behaviour. You should set the interceptor to Native on desktop app or Browser Extension on web app.

I'd recommend you to use desktop app with Native interceptor since it support both locally hosted and deployed APIs.

So on the desktop version, to test a request running on localhost, you should be able to have Native interceptor selected and it should run?

I'm on Windows v2023.12.4 and I have a simple GET request to an API running on localhost. Native Interceptor selected. I get "Could not send request".

<!-- gh-comment-id:1947141275 --> @ash-eng-spin commented on GitHub (Feb 15, 2024): > This is an expected behaviour. You should set the interceptor to **Native** on desktop app or **Browser Extension** on web app. > > I'd recommend you to use desktop app with **Native** interceptor since it support both locally hosted and deployed APIs. So on the desktop version, to test a request running on localhost, you should be able to have Native interceptor selected and it should run? I'm on Windows v2023.12.4 and I have a simple GET request to an API running on localhost. Native Interceptor selected. I get "Could not send request".
Author
Owner

@AndrewBastin commented on GitHub (Feb 16, 2024):

I'm on Windows v2023.12.4 and I have a simple GET request to an API running on localhost. Native Interceptor selected. I get "Could not send request".

@ash-eng-spin if you are running into this issue, please do open a new issue for this as it is unrelated to the issue mentioned here along with some steps for reproduction if possible.

<!-- gh-comment-id:1947843336 --> @AndrewBastin commented on GitHub (Feb 16, 2024): > I'm on Windows v2023.12.4 and I have a simple GET request to an API running on localhost. Native Interceptor selected. I get "Could not send request". @ash-eng-spin if you are running into this issue, please do open a new issue for this as it is unrelated to the issue mentioned here along with some steps for reproduction if possible.
Author
Owner

@liyasthomas commented on GitHub (Mar 4, 2025):

Thanks for your patience and valuable feedback. We’ve fixed this bug in the latest release.
Download the latest builds and provide your valuable feedback.

Closing this ticket as this bug is now fixed in the recent version. Please feel free to reach out if you have any other concerns.

<!-- gh-comment-id:2696977211 --> @liyasthomas commented on GitHub (Mar 4, 2025): Thanks for your patience and valuable feedback. We’ve fixed this bug in the latest release. [Download the latest builds](https://hoppscotch.com/download) and provide your valuable feedback. Closing this ticket as this bug is now fixed in the recent version. Please feel free to reach out if you have any other concerns.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1311
No description provided.