解决方法:

  1. 在Info.plist中添加NSAppTransportSecurity类型Dictionary

  2. NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES

在项目配置文件info.plist中添加App Transport Security Settings字典dictionary。在其下添加属性名为Allow Arbitrary Loads的bool值为yes。

即可解决。

iOS http请求不能用的解决办法


君凯商联网-iOS-字唐名僧

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2021-05-02
  • 2021-10-07
  • 2021-09-07
  • 2021-12-08
  • 2021-07-31
  • 2022-12-23
相关资源
相似解决方案