MOBILE-3859 login: Fallback to http if certificate isn't trusted
This commit is contained in:
parent
ee8c9de101
commit
fa9fd03feb
@ -257,7 +257,7 @@ export class CoreSitesProvider {
|
|||||||
// The WS didn't return data, probably cannot connect.
|
// The WS didn't return data, probably cannot connect.
|
||||||
return new CoreSiteError({
|
return new CoreSiteError({
|
||||||
message: error.message || '',
|
message: error.message || '',
|
||||||
critical: 'status' in error && error.status === -2, // Certificate error.
|
critical: false, // Allow fallback to http if siteUrl uses https.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user