CORS error trying to fetch NFT preview

Hi. I’m trying to fetch from the Moralis NFT preview endpoints, but I’m getting a CORS error.

Am I doing something wrong? Do I really need to run a proxy for these images? I looked through similar topics, but couldn’t find a relevant answer.

Thanks in advance!

Here is the example fetch:

  .then((response) => response.json())
  .then((response) => console.log(response))

it should work somehow to show them, why would you try to fetch them in the browser?

I was just showing the error, which is the same as when I fetch it from my web app.

Am I doing something wrong?

I don’t know if it should work with fetch, it should work if you try to show the image directly, that is my expectation.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.