Fix loading HTTP resources over HTTPS.