-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify ignoring localhost certificate validation errors #2543
Conversation
@simonrozsival Are the changes .NET 8 compatible? |
@davidbritch Yes, this works with .NET 8. |
This has come back to me. The Xamarin.Forms version of this doc was a lot simpler (https://learn.microsoft.com/en-gb/previous-versions/xamarin/cross-platform/deploy-test/connect-to-local-web-services#bypass-the-certificate-security-check) but it wasn't so easy in .NET MAUI 6. |
Yes, we didn't have any support for |
Updated the sample: dotnet/maui-samples#525 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I noticed our docs recommend quite a complicated setup to ignore localhost certificate validation errors. Thanks to the work we did in recent .NET releases, all platform handlers now support
ServerCertificateCustomValidationCallback
and they can be used via theHttpClientHandler
class in a cross-platform way.Associated WorkItem - 320966