Switching to HTTPS endpoint