How to fix ‘TIC SSL Trust Error’ in iOS?

后端 未结 5 518
星月不相逢
星月不相逢 2021-01-12 11:34

When I tried to login to the application using a webservice. I also set my plist-file like the following

I got the following error. This error

5条回答
  •  悲哀的现实
    2021-01-12 12:28

    You can input this in Appdelegate.m

    Here is the code:

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

提交回复
热议问题