ASP.NET MVC https全局配置

          //https全局配置
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
            ServicePointManager.ServerCertificateValidationCallback =
                (sender, certificate, chain, errors) => true;

 

posted @ 2019-12-18 18:52  b̶i̶n̶g̶.̶  阅读(269)  评论(0编辑  收藏  举报