I\'m updating my app to accommodate Apple\'s new ATS. Without any changes to the Plist-Info,the following code throws an error at sendSynchronousRequest() in a
If your app includes H5 page, sometimes it also will have this error.
It doesn't only require to turn on Allow Arbitrary Loads to fix it, but also require to add code below in your appDelegate.m:
@implementation NSURLRequest(ATS)
+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host
{
return YES;
}
@end