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:
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
Post a Comment