express-http-proxy icon indicating copy to clipboard operation
express-http-proxy copied to clipboard

Use follow-redirects instead of default http to support redirecting

Open marcelpanse opened this issue 7 years ago • 12 comments

With this lib, the proxy will fully support websites that use redirects (like google.com) and still proxy the site correctly (without this the browser will redirect and stop using the proxy).

marcelpanse avatar Jun 20 '17 08:06 marcelpanse

What do we need to approve this? I'm facing the exact same problem.

wlepinski avatar Sep 15 '17 12:09 wlepinski

@wlepinski @marcelpanse To accept this as a patch, it would need to be an option, and off by default off. It would also need a minimal test. I like this idea, so eventually I'll pick it up if you don't.

monkpow avatar Sep 18 '17 15:09 monkpow

@monkpow correct if I'm wrong but I think the follow-redirects handles this. We don't need an option.

wlepinski avatar Sep 18 '17 15:09 wlepinski

@wlepinski No, this fork will follow redirects automatically by default, I didn't make an option for it.

marcelpanse avatar Sep 18 '17 19:09 marcelpanse

@marcelpanse @wlepinski It does need an option. I understand that you're saying that the library will follow redirects automatically by default; I'm not certain that all installed users will want to switch to follow-redirects silently when they next upgrade the library. We'll need to give authors the opportunity to opt-in (rather than opting them in silently) until the next major release. If follow-redirects is popular, I'd consider making it default on a subsequent release.

monkpow avatar Sep 28 '17 12:09 monkpow

I needed this option today. Ended up just vendoring this branch 😢

matthewwithanm avatar Jan 05 '18 03:01 matthewwithanm

Made a fork of @marcelpanse's branch to use as a git dependency from npm as well. Looking forward to when a flag is added so this can go in!

rajsite avatar Feb 05 '18 04:02 rajsite

Any update on this? Or does anyone have a good workaround to suggest?

JSchneidler avatar Jun 07 '18 22:06 JSchneidler

@JSchneidler yep, there actually is an update. I'm currently working on this, and expect to have a patch by end of next week.

monkpow avatar Jun 08 '18 19:06 monkpow

@JSchneidler I'm continuing to work on this. I have a large scale change that I am replacing the request mechanism, and it will close this and several other large requests. It's taking a little longer than I had hoped, but I wanted to check in and let you know its proceeding, and I hope to be done in the next week or so.

Thanks for your patience.

monkpow avatar Jul 02 '18 13:07 monkpow

Are the changes in place? I definitely need this feature.

JSlain avatar Nov 23 '18 14:11 JSlain

Any news on this by any chance?

EGI-ILM avatar Nov 08 '23 17:11 EGI-ILM