Accces d'url d'image

System Information
  • Strapi Version:
  • Operating System:
  • Database:
  • Node Version:
  • NPM Version:
  • Yarn Version:

hello, I can’t access the url of the image via the strapi request! the url is displayed on the console, I retrieve and loop with forEach from javascipt but I don’t know how to store the result of my loop in a variable

Hello, did you manage to solve the problem?

Also, it might be because the format you use to fetch the images does not include the URL to Strapi server. Try this method:

src={`http://localhost:1337${recipe.attributes.photo.data.attributes.formats.medium.url}`