Reputation: 519
I have an image url from edamam api with this url Image URL, the image works just fine on browser but can't be displayed using Coil.
Upvotes: 0
Views: 69
Reputation: 15763
That's because in your browser, you are logged in, probably with cookies storing the authentication information.
This is not the case in your app, and therefore something along these lines will be returned instead of the image:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<X-Amz-Expires>3600</X-Amz-Expires>
<Expires>2024-04-23T12:33:15Z</Expires>
<ServerTime>2024-04-23T12:51:05Z</ServerTime>
<RequestId>C34YYPA3636TXZQK</RequestId>
<HostId>...</HostId>
</Error>
Upvotes: 0