How can I add NSAppTransportSecurity to my info.pl

2018-12-31 18:04发布

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.0 beta (7A121l), and testing on iOS9.

Because I can't specifically declare what URL's I want as seen in the video, I keep getting "App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file" errors.

However, I don't seem to be able to configure it. Any ideas?

13条回答
与君花间醉酒
2楼-- · 2018-12-31 18:36

Just to clarify ... You should always use httpS

But you can bypass it adding the exception:

enter image description here

查看更多
登录 后发表回答