mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-02 11:20:16 +08:00
Enable withCredentials on web platform
This commit is contained in:
@@ -6,7 +6,11 @@ import 'package:path_provider/path_provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'api/client.dart';
|
||||
|
||||
final dio = Dio()..options.validateStatus = (int? _) {return true;};
|
||||
final dio = Dio()
|
||||
..options.validateStatus = (int? _) {
|
||||
return true;
|
||||
}
|
||||
..options.extra['withCredentials'] = true;
|
||||
SharedPreferences? _prefs;
|
||||
EHApi? _api;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user