iOS AFNetworking 提示 "The resource could not be loaded because the App Transport Security policy r...

原因: iOS9之后, 苹果把原http协议改成了https协议, 所以不能直接在http协议下使用GET/POST方法;

解决办法:
在Xcode项目中选中info.plist文件, 添加以下属性:

NSAppTransportSecurity

  NSAllowsArbitraryLoads
  

原文:https://www.cnblogs.com/36bian/p/5237138.html

你可能感兴趣的:(iOS AFNetworking 提示 "The resource could not be loaded because the App Transport Security policy r...)