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

前端 未结 14 1542
野趣味
野趣味 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:41

    Update Answer (after wwdc 2016):

    IOS apps will require secure HTTPS connections by the end of 2016
    

    App Transport Security, or ATS, is a feature that Apple introduced in iOS 9. When ATS is enabled, it forces an app to connect to web services over an HTTPS connection rather than non secure HTTP.

    However, developers can still switch ATS off and allow their apps to send data over an HTTP connection as mentioned in above answers. At the end of 2016, Apple will make ATS mandatory for all developers who hope to submit their apps to the App Store. link

提交回复
热议问题