Categories

Developer

Bleuarff

Redireq v1.5

  • rating
  • rating
  • rating
  • rating
  • rating
0 (0 reviews)
Redirects requests from one host to another another, live. Redireq

This extension allows redirecting requests from one host to another. Define source and destination hosts, and any request whose url matches the source value will see that part replaced by the destination value. Values can be hosts or host + path fragment.

I'm working on a widget that's integrated in a parent page. Being able to redirect requests from one environment to another is very valuable, as that means one can see the live, production parent page, while using the development version of the widget. Being able to switch environments helps with development and debugging.

Redirect from production to dev environment:
widgets.example.com → widgets-dev.example.com

Redirect from one version to another:
example.com/v3 → example.com/v2

Redirect only one file:
example.com/v3/loader.js → dev.example.com/v3/loader.js

** version history **
1.5:
- small UI fixes on Firefox 75 windows

1.4:
- fix edition bug
- tab navigation support

1.3:
Sort entries & group them by source host.

1.2:
- rules with duplicate source host are allowed, but only one active at anytime,
- refactor error reporting.

1.1:
Redirect requests when source host response headers are received. This allows to correctly see the redirect request in network trace, and have files correctly listed in debugger. Oh, and a new icon, dark theme compatible.

1.0:
initial release.