Fix connection over HTTPS