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