Baseflow / Baseflow/flutter_cached_network_image

Please support withCredentials property

Open
#647 1 comment 0 reactions 0 assignees View on GitHub
type: enhancement
Dominant language
Dart
Stars
2.6k
Forks
731
Avg merge
3d 9h
Merged PRs (30d)
1

Description

## 🚀 Feature Requests

CachedNetworkImage supports running on Flutter for web. Images are fetched using an XHR request.
Sometimes it is necessary to authenticate a request with a session id within a cookie header.

In a Cross-Origin environment (flutter frontend has been loaded from a different hostname than the image is loaded from) the browser does not pass cookie headers for XHR requests because by default the flag `withCredentials` is false.

Please support an optional parameter `withCredentials` for CachedNetworkImage.

Dart supports this flag for dart:html:HttpRequest
https://api.dart.dev/stable/2.13.4/dart-html/HttpRequest/withCredentials.html

### Platforms affected (mark all that apply)
- [x] :all: web

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.