I want to allow invalid SSL certificates with AFNetworking

前端 未结 13 746
南笙
南笙 2020-12-02 10:11

I want to allow invalid SSL certificates. My main code is below:

myClient = [[MyClient alloc] init];
[myClient getHtml:@\"/path/to/the/distination.html\"];
<         


        
13条回答
  •  余生分开走
    2020-12-02 10:33

    This is the best method for allowign invalid SSL certificates with AFNetworking.

    use add a _AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES_ to

    project > Build Settings > Preprocessor Macros and add it to Debug entry.

    Hope it Helps

提交回复
热议问题