question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Port gets unnecesarily rewritten in Proxy

See original GitHub issue

Issue details

I have a link which needs to link to a specific port (which isnt the port that gets proxied), however browsersync rewrites the URL to the Browsersync port.

Steps to reproduce/test case

Assuming: You are running stock browsersync The port you are proxying localhost:80 to localhost:3000 You are trying to link to localhost:6426

Write the anchor in the HTML

<a href="http://localhost:6426">test</a>

Observe how the link in the browser gets rewritten to

<a href="http://localhost:3000">test</a>

Please specify which version of Browsersync, node and npm you’re running

  • Browsersync [ 2.24.5 ]
  • Node [ 10.4.1 ]
  • Npm [ 6.1.0 ]

Affected platforms

I can now only confirm Linux (host and client) but considering the nature of this bug, I suspect it will be all OS’s.

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • Gulp
  • Grunt
  • CLI

If CLI, please paste the entire command below

{cli command here}

for all other use-cases, (gulp, grunt etc), please show us exactly how you’re using Browsersync

(laravel-mix-browsersync-official)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Oct 17, 2018

I forgot to look back at this, Thanks for the fix!

0reactions
shakyShanecommented, Aug 26, 2018

@megaxlr confirmed bug, it will be looked at 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Evaluate proxy by port versus proxy by hostname
The first rewritten URL example for proxy by hostname show the URL form if EZproxy uses port 80, in which case no port...
Read more >
How to rewrite proxified HTTP requests in Charles without ...
I am using Charles to intercept and rewrite a certain query in proxified HTTP requests as following: HTTP request --->> Proxifier ...
Read more >
How to use Charles Proxy to rewrite HTTPS traffic for web ...
Rewriting traffic with Breakpoints​​ The quickest way to achieve this is to use a Breakpoint. These are set up for specific resources (or ......
Read more >
Nginx reverse proxy subdirectory rewrites for sourcegraph
I know my approach is probably wrong using rewrite and I'm trying the sub_filter module right now. I captured the response of sourcegraph...
Read more >
Is it safe to have an opened port on my PC with a proxy server ...
You should query yourself on the first question and keep in mind this easy advice: Always close unnecessary services and specific ports ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found