Add support for unsafe redirects from HTTP to HTTPS