Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to capture any request from localhost #226

Closed
NghiaTranUIT opened this issue Jul 19, 2019 · 1 comment

Comments

@NghiaTranUIT
Copy link
Member

commented Jul 19, 2019

馃惗 Brief

There are some users encountered the issue that Proxyman couldn't capture any request from Safari when navigating to localhost:3000, but it work if it's has alias in etc/hosts

Let check it out!

馃憫 Criteria

  • Able to capture any request to localhost:xxxx

@NghiaTranUIT NghiaTranUIT self-assigned this Jul 19, 2019

@NghiaTranUIT NghiaTranUIT added this to the Proxyman 1.4.6 馃 milestone Jul 19, 2019

@NghiaTranUIT NghiaTranUIT added the bug label Jul 19, 2019

@NghiaTranUIT

This comment has been minimized.

Copy link
Member Author

commented Jul 19, 2019

It turns out that macOS is hardcoded that localhost will not use proxy, so when we connect to localhost from Safari/Chrome, it doesn't appear on Proxyman.

There are two workaround approaches:

  1. Add 127.0.0.1 <yourdomain> in /etc/host, then using new alias domains for testing.
    Ex:
# /etc/host
127.0.0.1	proxyman.dev

Then open proxyman.dev:3000 in Safari -> All requests are recored in Proxyman app.

  1. Use Paw, Insomnia REST Client, curl with overridden Proxy configs.
    Ex:
  • Paw: Preferences -> Network -> Enable HTTP/HTTPS Proxy
  • Insomnia: Preferences -> Enable HTTP/HTTPS Proxy
  • curl: with proxy config -x http://localhost:9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can鈥檛 perform that action at this time.