Add https compatibility