i have this image URL that i get from instagram api, weweb image component could not render this image, why is that ?
I think that’s because the the server has CORS restriction. If you look at the Network panel in the dev tools, you can see this message on the image request
Yeah, Instagram blocks hotlinking - which as JP said - throws CORS errors, I’ve had this on a partner’s project. There is ways, but I think the best course of action is to just find a different source, or use their embeds.
for future reference, what are the steps to see this error ?
i don’t see this error on the network → image
hmmm… embeds huh, do you have recommended source ?
Instagram embeds, I saw them on some sites. A quick google should give you some results. As for the CORS errors you can find them when the image embed fails in the Dev Tools → Network tab.
thank you broberto
Okay so for anyone that has this issue, my solution is to
- create a file resource from that URL
- create image metadata
- store it on xano database and get URL made by xano