You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These functions all take success and error callbacks as their last 2 arguments.
56
59
57
60
### enableSSLPinning
58
-
Enable or disable SSL pinning. To use SSL pinning you must include at least one .cer SSL certificate in your app project. You can pin to your server certificate or to one of the issuing CA certificates. For ios include your certificate in the root level of your bundle (just add the .cer file to your project/target at the root level). For android include your certificate in your project's platforms/android/assets folder. In both cases all .cer files found will be loaded automatically. If you only have a .pem certificate see this [stackoverflow answer](http://stackoverflow.com/a/16583429/3182729). You want to convert it to a DER encoded certificate with a .cer extension.
61
+
Enable or disable SSL pinning. This defaults to false.
62
+
63
+
To use SSL pinning you must include at least one .cer SSL certificate in your app project. You can pin to your server certificate or to one of the issuing CA certificates. For ios include your certificate in the root level of your bundle (just add the .cer file to your project/target at the root level). For android include your certificate in your project's platforms/android/assets folder. In both cases all .cer files found will be loaded automatically. If you only have a .pem certificate see this [stackoverflow answer](http://stackoverflow.com/a/16583429/3182729). You want to convert it to a DER encoded certificate with a .cer extension.
59
64
60
65
As an alternative, you can store your .cer files in the www/certificates folder.
61
66
@@ -66,14 +71,23 @@ As an alternative, you can store your .cer files in the www/certificates folder.
66
71
});
67
72
68
73
### acceptAllCerts
69
-
Accept all SSL certificates. Or disable accepting all certificates.
74
+
Accept all SSL certificates. Or disable accepting all certificates. This defaults to false.
70
75
71
76
cordovaHTTP.acceptAllCerts(true, function() {
72
77
console.log('success!');
73
78
}, function() {
74
79
console.log('error :(');
75
80
});
76
81
82
+
### validateDomainName
83
+
Whether or not to validate the domain name in the certificate. This defaults to true.
0 commit comments