Answers for "how to solve flutter CERTIFICATE_VERIFY_FAILED error while performing a POST request?"

0

how to solve flutter CERTIFICATE_VERIFY_FAILED error while performing a POST request?

class MyHttpOverrides extends HttpOverrides{
  @override
  HttpClient createHttpClient(SecurityContext context){
    return super.createHttpClient(context)
      ..badCertificateCallback = (X509Certificate cert, String host, int port)=> true;
  }
}
Posted by: Guest on June-03-2021

Code answers related to "how to solve flutter CERTIFICATE_VERIFY_FAILED error while performing a POST request?"

Browse Popular Code Answers by Language