📌  相关文章
📜  DioError [DioErrorType.DEFAULT]:HandshakeException:客户端中的握手错误(操作系统错误:我颤动(28831):CERTIFICATE_VERIFY_FAILED:自签名证书(handshake.cc:354))\ - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:55.188000             🧑  作者: Mango

代码示例1
class MyHttpOverrides extends HttpOverrides{
  @override
  HttpClient createHttpClient(SecurityContext context){
    return super.createHttpClient(context)
      ..badCertificateCallback = (X509Certificate cert, String host, int port)=> true;
  }
}