@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];

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2022-02-10
  • 2022-01-30
  • 2021-08-04
猜你喜欢
  • 2021-06-27
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案