I recently tried to fetch NFT attributes from Magic Eden using their api.
These are attributes I would like to fetch.
const nftData = await axios.get(
`https://api-mainnet.magiceden.dev/rpc/getNFTByMintAddress/J7dEazGQhLzBogsXHFK29r5YRJ3bA42hY4PZAVWb6q4h`)
I used this script to fetch data. It's working on local server but once built, it throw cors error.
How can I handle this cors error?