Baseflow / flutter_cached_network_image

Download, cache and show images in a flutter app
https://baseflow.com
2.44k stars 654 forks source link

Load image from redirect URL not working #494

Open Miloune opened 3 years ago

Miloune commented 3 years ago

🐛 Bug Report

Image from redirect URL is not working

Expected behavior

Image from redrect URL is displayed

Reproduction steps

CachedNetworkImage(
                placeholder: (context, url) => CircularProgressIndicator(),
                imageUrl:  'https://www.instagram.com/p/CCv3KfZju2o/media/?size=t',
                height: 50,
                errorWidget: (context, url, error) => Icon(Icons.error),
              )

Configuration

Version: 2.3.2+1

Platform:

dodatw commented 3 years ago

Is there any good news? I face the same issue. Is this module not work when redirect Url?

mstich-triva commented 3 years ago

I'm experiencing the same issue. I'm still investigating but I don't believe the headers are being set on the redirected call.

AdminHcat commented 3 weeks ago

I may have a similar problem. I try to access an image API , this domain validates the user-agent. Normally, it will redirect to this image direct link, but the user-agent header set using the CachedNetworkImageProvider will be lost after the redirect