Skip to content

Commit

Permalink
Merge pull request #296 from stayintarkov/Security-Hotfix
Browse files Browse the repository at this point in the history
Remove custom cert delegate
  • Loading branch information
Plootie authored Jul 6, 2024
2 parents 1a0d293 + a4434dc commit e2741ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SIT.Manager/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ private static ServiceProvider ConfigureServices
//TODO: Move this to httpclient factory with proper configuration
.AddSingleton(new HttpClientHandler
{
SslProtocols = System.Security.Authentication.SslProtocols.Tls12,
ServerCertificateCustomValidationCallback = delegate { return true; }
SslProtocols = System.Security.Authentication.SslProtocols.Tls12
})
.AddSingleton(provider => new HttpClient(provider.GetService<HttpClientHandler>() ?? throw new ArgumentNullException())
{
Expand Down

0 comments on commit e2741ae

Please sign in to comment.