Rollback the WebView2 version due to the invalidation of Security.setIgnoreCertificateErrors

This commit is contained in:
dylech30th 2021-07-26 11:13:04 +08:00
parent d6c50c25f3
commit 2517c1fa32
3 changed files with 11 additions and 3 deletions

View File

@ -81,7 +81,7 @@ namespace Pixeval.LoginProxy
AdditionalBrowserArguments = $"--proxy-server=127.0.0.1:{port}"
})
);
await LoginWebView.CoreWebView2.CallDevToolsProtocolMethodAsync("Security.setIgnoreCertificateErrors", @"{ ""ignore"": true }");
await LoginWebView.CoreWebView2.CallDevToolsProtocolMethodAsync("Security.setIgnoreCertificateErrors", "{ \"ignore\": true }");
LoginWebView.CoreWebView2.AddWebResourceRequestedFilter("*", CoreWebView2WebResourceContext.All);
LoginWebView.CoreWebView2.WebResourceRequested += (_, args) =>
{

View File

@ -13,7 +13,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.864.35" />
<PackageReference Include="Microsoft.Web.WebView2" Version="1.0.705.50" />
</ItemGroup>
<ItemGroup>

View File

@ -6,6 +6,14 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
<Grid />
<Grid>
<Grid.RowDefinitions>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
</Grid>
</Page>