diff --git a/CHANGELOG.md b/CHANGELOG.md index aff8e37..9b37f74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.1.1 + +- Bugfix: workaround for BrowserHttpAdapter issue +- Updated packages + ## 1.1.0 - Added option to add permanent headers to client diff --git a/lib/src/client/wiseclient_web.dart b/lib/src/client/wiseclient_web.dart index 6cef994..a3d8885 100644 --- a/lib/src/client/wiseclient_web.dart +++ b/lib/src/client/wiseclient_web.dart @@ -33,7 +33,8 @@ base class WebWiseClient extends DioForBrowser with WiseClient { Iterable? replacementInterceptors, }) { options = baseOptions ?? BaseOptions(); - httpClientAdapter = BrowserHttpClientAdapter(); + httpClientAdapter = (HttpClientAdapter() as BrowserHttpClientAdapter) + ..withCredentials = true; if (replacementInterceptors != null) { interceptors.addAll(replacementInterceptors); } else { diff --git a/pubspec.yaml b/pubspec.yaml index e900dda..4ab6d78 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: wiseclient description: A http client based on Dio with extra features and a few interceptors for basic functionality. -version: 1.1.0 +version: 1.1.1 homepage: https://github.com/wisemen-digital/flutter-networking-client repository: https://github.com/wisemen-digital/flutter-networking-client @@ -14,7 +14,7 @@ dependencies: sdk: flutter # Dio - dio: ^5.5.0+1 + dio: ^5.7.0 fresh_dio: ^0.4.2 # Secure storage @@ -22,13 +22,11 @@ dependencies: # Logging & Debugging native_dio_adapter: ^1.3.0 - talker_dio_logger: ">=4.0.0 <5.0.0" + talker_dio_logger: ">=4.4.1 <5.0.0" dev_dependencies: # Static analysis & linting lints: ^4.0.0 # Testing - test: ^1.25.2 - -flutter: + test: ^1.25.8