uiwebview - App Transport Security breaks Web View -


my app works great under ios8 no longer runs under ios9. problem despite having following in .plist file:

<key>nsapptransportsecurity</key> <dict>    <!--include allow connections (danger)-->    <key>nsallowsarbitraryloads</key>    <true/> </dict> 

the following code:

nsurl *targeturl = [nsurl urlwithstring:_casestudylisttitleurl]; nsurlrequest *request = [nsurlrequest requestwithurl:targeturl]; [_mywebview loadrequest:request]; 

results in error:
nsurlsession/nsurlconnection http load failed (kcfstreamerrordomainssl, -9813)

this of course leads empty webview being displayed.

all other nsurlsession code in app functioning correctly.

i running xcode 7 beta 3 , ios 9 on test ipad.

any ideas on appreciated!

try solution:

<key>nsapptransportsecurity</key> <dict>     <key>nsexceptiondomains</key>     <dict>         <key>yourdomain.com</key>         <dict>             <key>nsincludessubdomains</key>             <true/>             <key>nstemporaryexceptionallowsinsecurehttploads</key>             <true/>             <key>nstemporaryexceptionminimumtlsversion</key>             <string>tlsv1.1</string>         </dict>     </dict> </dict> 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -