Check whether https when creating ajax cart base url