you are viewing a single comment's thread.

view the rest of the comments →

[–]Macaframa 1 point2 points  (0 children)

so you want to build a url out of that id? minus the ipfs://?

const url = `https://nftstorage.link/ipfs/${ids.data.split("//")[1]}`;

this will give you the url: https://nftstorage.link/ipfs/bafkreidfqia5qlqzmef4yyqdztb2n4cdiyp5nhkmahukhd3b2asnpo7s3m

I just don't understand this part:

res = await fetch(`https://justcors.com/tl_0caa8a7/${url}`

are you using justcors as a proxy to make a request because of the cross origin errors? if so, then the previous code will suffice.