Added override ssl check

This commit is contained in:
Juan Gilsanz Polo 2022-09-30 02:24:49 +02:00
parent 4285630508
commit 2716ed17c1
8 changed files with 160 additions and 7 deletions

View file

@ -0,0 +1,9 @@
import 'dart:io';
class MyHttpOverrides extends HttpOverrides {
@override
HttpClient createHttpClient(SecurityContext? context){
return super.createHttpClient(context)
..badCertificateCallback = (X509Certificate cert, String host, int port) => true;
}
}