A minimal http server that issues HTTP redirects (response code 302, Location
header)
to whitelisted hosts.
Two basic modes are supported:
-
If
redirectPrefix
is unspecified, the client is redirected directly to the location specified in theredirect
query parameter. -
If
redirectPrefix
is specified, the client is redirected to a URL constructed by appending the URL-encoded representation of the location requested in theredirect
query parameter to the value specified forredirectPrefix
.