Possible fix for HTTPS