mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 19:51:10 +00:00
fix(iOS): Ignore WebKitDomainError 101 (#961)
This commit is contained in:
committed by
Thibault Malbranche
parent
ce565f4832
commit
adb5608116
+1
-1
@@ -962,7 +962,7 @@ static NSDictionary* customCertificatesForHost;
|
||||
return;
|
||||
}
|
||||
|
||||
if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102) {
|
||||
if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102 || [error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 101) {
|
||||
// Error code 102 "Frame load interrupted" is raised by the WKWebView
|
||||
// when the URL is from an http redirect. This is a common pattern when
|
||||
// implementing OAuth with a WebView.
|
||||
|
||||
Reference in New Issue
Block a user