Hi, i have a question by cors error!

this is my error:

Access to fetch at ‘https://ipfs.moralis.io:2053/ipfs/QmXMktHenQwUkGgnKh1ByYJJ4epee7ToSZYTUsQ5duhLAN’ from origin ‘https://market-testermumatstudio.vercel.app’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

but the error does not give all the time the same in my localhost

You can try to replace the domain part with another ipfs public gateway like ipfs.io or cloudflare

can you give me an example how to replace please, thanks

instead of that you have to convert it to

‘https://ipfs.io/ipfs/QmXMktHenQwUkGgnKh1ByYJJ4epee7ToSZYTUsQ5duhLAN
1 Like

thanks, cryptokid. I’m going to change the ipfs and comment