Simplified code example in data-cloud/local-web-services#bypass-the-certificate-security-check (#2253)
Co-authored-by: David Britch <davidbritch@users.noreply.github.com>
This commit is contained in:
Родитель
87a74500f8
Коммит
0dfeebf3de
|
@ -190,9 +190,7 @@ public class HttpsClientHandlerService
|
|||
#if IOS
|
||||
public bool IsHttpsLocalhost(NSUrlSessionHandler sender, string url, Security.SecTrust trust)
|
||||
{
|
||||
if (url.StartsWith("https://localhost"))
|
||||
return true;
|
||||
return false;
|
||||
return url.StartsWith("https://localhost");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче