AFNetWorking支持https,不验证证书
tags: AFNetWorking https 不验证证书
直接上代码
AFSecurityPolicy *securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone];
[securityPolicy setValidatesDomainName:NO];
[securityPolicy setAllowInvalidCertificates:YES];
_sharedInstance.securityPolicy = securityPolicy;