Fix HTTPS resources loading