iOS UIWebView 访问https 绕过证书验证的方法

来源:互联网 发布:圣女贞德 知乎 编辑:程序博客网 时间:2024/04/29 18:57

在文件开始实现  allowsAnyHTTPSCertificateForHost 方法

@implementation NSURLRequest (NSURLRequestWithIgnoreSSL)+ (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host{    return YES;}@end