Add option to enable trusted HTTP redirects

This is needed in case if we have password-protected URL which is actually redirect to another password-protected URL which accept the same credentials as initial URL.