ios - App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure -


app transport security has blocked cleartext http (http://) resource load since insecure. temporary exceptions can configured via app's info.plist file.

i have solutions possible like: ` nsapptransportsecurity

<dict>      <key>nsallowsarbitraryloads</key>      <true/>  </dict>` 

and

<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> 

but still facing same error.

the first settings not correct, should be:

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

the second settings works if on https server not support tlsv1.2


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -