Redirectify is a chrome plugin that redirects http trafic where you want it.
Well, i wanted a easy way to redirect for api trafic during development. I wanted a easy way to swap from dev server to real server, without leaving chrome and with only one click.
I'm developing a webpage that uses an REST API to talk with the backend.
The rest api request ulr's will always start with localhost:8585/rest/
when talking to an mock server.
But now, I as an developer want´s to test my new feature with a real backend. The solution is simple. We can tell Redirectify that all trafic currently running in chrome that contains localhost:8585/rest/
can be redirected to another host/port/url.
In this example we will redirect the requests to my live server running on localhost:1337/rest/
.
The final configuration in the redirectify gui will be the following:
Urls: to trigger on = localhost:8585/rest
Replace the following = localhost:8585/rest
With = localhost:1337/rest
-
Download as an zip archive here at this github page
-
Unzip to a good location
-
Open a new tab in chrome, type
chrome://extensions
-
Check on Developer mode
-
Click on Load unpacked extension
-
Upload the folder containing Redirectify.
This library is licensed under the MIT license. Please see License file for more information.