Why some https links are not loading the WebView. I can see that some https url are loading perfectly in the safari browser, but when I try to load the same url in the webview, it is not loading. May be because the https has self-signed certificate ?? Can't we load the url in the WebView which has self-signed certificate ?
EDIT: Now I am able to call
- (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace
{
return YES;
}
- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge
{
[challenge.sender useCredential:[NSURLCredential credentialForTrust:challenge.protectionSpace.serverTrust] forAuthenticationChallenge:challenge];
}
Still my https url is not loaded in the WebView.