API returns correct cover image, but it does not display correctly on site?

Group Leader
Joined
Aug 25, 2023
Messages
18
I have implemented a manga page on my site, which utilizes mangadex's API to get the link to the most recent cover image.
The problem is that when i open my site, i see this image:

1737539498656.jpeg
When i open the image in a new tab, it will still display this image (including any time i reload the page).
However, when i manually either
1: click the address bar and press enter (without changing the image url)
2: open the image url manually
the correct cover art will show.
How can i fix this?
 
File Attacher
Staff
Super Moderator
Joined
Jan 20, 2018
Messages
292
https://api.mangadex.org/docs/2-limitations/

The following anti-abuse policies are in place:
  • We do not send CORS responses for other websites than ours; MUST proxy the requests your users make to our services, and inject your own CORS responses and headers where relevant
  • We will serve the wrong response for any image hotlinked from our domains; you MUST proxy the requests your users make to our services
 
Solution

Users who are viewing this thread

Top