You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposed Solution
Pass HttpClientHandler to Html.LoadAsync and use that handler to add-on as required e.g.
public async Task LoadAsync(Uri uri, HttpClientHandler handler, CancellationToken cancel = default)
{
// UAP apps forbid redirect from HTTPS to HTTP, we must manually redirect to avoid this issue
handler.AllowAutoRedirect = false;
handler.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
handler.UseCookies = true;
using (handler)
{
var wc = new HttpClient(handler);
...
}
}
The text was updated successfully, but these errors were encountered:
Error details
The SSL connection could not be established,
Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
Cause/Explanation:
https://docs.microsoft.com/en-us/answers/questions/535932/xamarin-android-throws-error-ssl-routinesopenssl-i.html
Proposed Solution
Pass HttpClientHandler to Html.LoadAsync and use that handler to add-on as required e.g.
public async Task LoadAsync(Uri uri, HttpClientHandler handler, CancellationToken cancel = default)
{
// UAP apps forbid redirect from HTTPS to HTTP, we must manually redirect to avoid this issue
handler.AllowAutoRedirect = false;
handler.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
handler.UseCookies = true;
using (handler)
{
var wc = new HttpClient(handler);
...
}
}
The text was updated successfully, but these errors were encountered: