Prevent Man in the Middle attacks with this Cordova plugin