Try fixing api url redirection on SSL.