在身份验证的Blazor服务器端,我可以编写
services.AddAuthentication().AddOpenIdConnect(options =>
{
options.BackchannelHttpHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (sender, cert, chain, policyErrors) =>
{
return true;
}
};
});
如何在Blazor WASM中设置ServerCertificateCustomValidationCallback?