HTTP Error in Swift 2 -


this question has answer here:

whenever try load url or gain data specific url follows http:// format. xcode returns me error

nsurlsession/nsurlconnection http load failed (kcfstreamerrordomainssl, -9802) 

how can fix/work way around this

i not sure have update info.plist file adding key:

<key>nsapptransportsecurity</key>   <dict>        <key>nsallowsarbitraryloads</key><true/>   </dict> 

or can add way , like:

enter image description here

or can add specific domain like:

<key>nsapptransportsecurity</key> <dict>   <key>nsexceptiondomains</key>   <dict>     <key>yourserver.com</key>     <dict>       <!--include allow subdomains-->       <key>nsincludessubdomains</key>       <true/>       <!--include allow http requests-->       <key>nstemporaryexceptionallowsinsecurehttploads</key>       <true/>       <!--include specify minimum tls version-->       <key>nstemporaryexceptionminimumtlsversion</key>       <string>tlsv1.1</string>     </dict>   </dict> </dict> 

original post here that.


Comments

Popular posts from this blog

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -