How can I add NSAppTransportSecurity to my info.plist file?

前端 未结 14 1309
野趣味
野趣味 2020-11-22 12:48

https://developer.apple.com/videos/wwdc/2015/?id=711 @5:55

I can\'t seem to be able to add this to my info.plist. There is no value it. I\'m running XCode Version 7.

14条回答
  •  盖世英雄少女心
    2020-11-22 13:33

    You have to add just the NSAllowsArbitraryLoads key to YES in NSAppTransportSecurity dictionary in your info.plist file.

    For example,

     NSAppTransportSecurity
     
          NSAllowsArbitraryLoads
         
     
    

提交回复
热议问题