NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814) in Loading webview?
It was issue with date/time settings of my iPad.Firstly i tried opening google.com on chrome on iPad then it was showing unsecure network error.So i changed the iPad date/time settings my issue was resolved.
HTTP load failed (kCFStreamErrorDomainSSL, -9806 ( IOS9)
You need to define the URL you want to apply these rules for.
You can find the correct declaration on Apple's documentation page:
https://developer.apple.com/library/prerelease/ios/technotes/App-Transport-Security-Technote/
So basically your Info.plist should look like this and include the domain.
Note: for better transparency, I also redeclared the default value for NSAllowsArbitraryLoads
to be false
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<false/>
<key>NSExceptionDomains</key>
<dict>
<key>yourdomain.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true/>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
Best regards.
In case, you just don't care about all these ssl mess ups (I do not recommend this) and want to only go for debugging your UI, you can alternatively go temporarily and use the non-default for App TransportSecurity and allow just anything:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
I am not sure, whether Apple would let this pass in the AppStore Review ;-)
Related Topics
Open App from Sms with My Url Scheme as a Link
Finding Distance Between Cllocationcoordinate2D Points
How to Change Tint Color of Uialertcontroller
Delete and Update Data in Core Data in iOS
Ios9: Alternative to Uidevice.Currentdevice().Setvalue(...) to Force Orientation
Hide Red Recording Status Bar in iOS App When Not Recording
Send an Email from My App Without Using Mfmailcomposeviewcontroller
Codesign Returned Errsecinternalcomponent in High Sierra
How to Start an Ibeacon Transmitter in the Background
Uibarbuttonitem Custom View in Uinavigationbar
iOS Simulator Is Not Launching
Uitableviewcell Without Using Deprecated Method Initwithframe:Reuseidentifier
Healthkit Authorisation Status Is Always 1