Skip to content

Commit fd3be93

Browse files
committed
refactor: Enable credentials for web requests
- Added withCredentials to adapter - Allows sending cookies on web
1 parent a601c8b commit fd3be93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/ht_http_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class HtHttpClient {
4646

4747
// Set the appropriate HttpClientAdapter
4848
if (isWeb) {
49-
_dio.httpClientAdapter = BrowserHttpClientAdapter();
49+
_dio.httpClientAdapter = BrowserHttpClientAdapter(withCredentials: true);
5050
} else {
5151
_dio.httpClientAdapter = IOHttpClientAdapter();
5252
}

0 commit comments

Comments
 (0)