AFNetworking 3.2.0 'a security policy configured with can only be applied on a manager with a secure base url (i.e. https)

后端 未结 1 532
执念已碎
执念已碎 2021-01-26 19:07

Recently I have updated my iOS App\'s AFNetworking pods from 3.1.0 to 3.2.0. AFNetworking3.2.0 Having issues like Crashing the app withe bellow error

<

相关标签:
1条回答
  • 2021-01-26 19:47

    Check out this Pull request: https://github.com/AFNetworking/AFNetworking/pull/3687

    It clearly mentions that AFHTTPSessionManager instance configured with an insecure http base URL will throw an exception.

    To use AFHTTPSessionManager from 3.2.0 onwards you'll have to switch to a secure https base URL if you are setting the security policy configured with AFSSLPinningModeCertificate or AFSSLPinningModePublicKey

    0 讨论(0)
提交回复
热议问题