webView 加载https
代码块
NSURLRequest.h
@interface NSURLRequest(SLSSL)
+(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host;
+(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host;
@end
NSURLRequest.m
@implementation NSURLRequest(SLSSL)
+(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host {
return YES;
}
+(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host {
}
@end