2016-01-22 71 views
2

嘿,我得到这个错误:获取应用程序传输安全问题

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.

当试图从网上获取的图像,我知道这是要与iOS9应用传输安全性,但事情是,在我的plist中,我将Allow Arbitrary Loads设置为true。

更多的是,我真的不能找到任何更多的解决方案,这个问题。

有没有人有任何想法?

enter image description here

+0

您可以添加.plist条目的屏幕截图吗?只是要确定? – NSNoob

+0

是啊肯定一秒@NSNoob – YuviGr

+0

你见过这篇文章http://stackoverflow.com/a/31254874/3096087? – Niko

回答

2

Exception Domains定义为特定域的安全性。在本词典可以覆盖的是与NSAllowArbitoryLoads定义,例如有:

NSAppTransportSecurity 
    NSAllowsArbitraryLoads = YES 
    NSExceptionDomains 
     "unsecure-server-i-control.example.com" 
     NSExceptionAllowsInsecureHTTPLoads = NO 

任意负载允许一般,但专门为unsecure-server-i-control.example.com他们是不允许的。

欲了解更多信息,请参阅NSAppTransportSecurity in Apple docs