allow cordova example to work on https as well