@interface NSURLRequest(ForSSL)
+(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host;
+(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host;
@end
@implementation NSURLRequest(ForSSL)
+(BOOL)allowsAnyHTTPSCertificateForHost:(NSString*)host
{
return YES;
}
+(void)setAllowsAnyHTTPSCertificate:(BOOL)allow forHost:(NSString*)host
{
}
@end
NSURLRequest *request=[NSURLRequest requestWithURL: [NSURL URLWithString:authPagePath]];
[NSURLRequest setAllowsAnyHTTPSCertificate:YESforHost:kDomain];
[webView loadRequest:request];