Change endpoint to https.