Works in both http:// and https://