add acceptAllHosts call to test self-signed certificate in dev environment (still performs pinning but skips host validation)

TODO: iOS
This commit is contained in:
Denis Babineau
2015-07-15 09:33:44 -03:00
parent 1c1f716cf8
commit 43b04a94e2
4 changed files with 26 additions and 7 deletions
+3
View File
@@ -19,6 +19,9 @@ var http = {
acceptAllCerts: function(allow, success, failure) {
return exec(success, failure, "CordovaHttpPlugin", "acceptAllCerts", [allow]);
},
acceptAllHosts: function(allow, success, failure) {
return exec(success, failure, "CordovaHttpPlugin", "acceptAllHosts", [allow]);
},
post: function(url, params, headers, success, failure) {
return exec(success, failure, "CordovaHttpPlugin", "post", [url, params, headers]);
},