📌  相关文章
📜  如何在执行 POST 请求时解决颤振 CERTIFICATE_VERIFY_FAILED 错误? - 无论代码示例

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

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