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:

fetch("https://nft-preview-media.s3.us-east-1.amazonaws.com/evm/0x1/0xd07dc4262bcdbf85190c01c996b4c06a461d2430/0xdf16d3821534d643453ee5df98c2c21a89020010489c44ebe0c2455fc35a5495/high.png")
  .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.