Currently I am using Glide to show images. I have created the custom header(Authorization) for it
public class HeadersClass {
public static GlideUrl getUrlWithHeaders(String url){
return new GlideUrl(url, new LazyHeaders.Builder()
.addHeader("token", "lkajsdlkjasldjasldjaslkdjaslkdj")
.build());
}
}
And using in Glide like this
Glide.with(getActivity())
// .load(baseUrlForImage + urlOfImage)
.load(HeadersClass.getUrlWithHeaders(baseUrlForImage + urlOfImage))
.into(imageView);
And it's working fine but now the issue is the image URL are coming with HTTPS (in starting I was using http only).
With HTTPS now its not showing the image.
Is there any way for it and can I use some other lib for it?