Created
March 13, 2013 19:20
-
-
Save jamesmbeams/5155230 to your computer and use it in GitHub Desktop.
To allow Cordova (iOS) to connect to HTTPS with a self signed certificate, paste this at the bottom of AppDelegate.m NOTE: Only for testing, remember to remove it before submitting to the App Store, as I hear it could cause the app to be rejected.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSURLRequest (ServiceClient) | |
+ (BOOL) allowsAnyHTTPSCertificateForHost:(NSString *) host | |
{ | |
return YES; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please note that this does not works in iOS 11 anymore (WKWebview).