solana-arweave-react-mint-nft-example
solana-arweave-react-mint-nft-example copied to clipboard
CORS Error
Hi! I'm trying to use GetBalance/Airdrop for the ArConnect wallet and I'm encountering this issue:
I'm on Testnet (www.arweave.run) and I've also set it in 'ArConnect > Settings > Gateway > select Gateway'.
Access to fetch at 'https://www.arweave.run/mint/Zb8ECPwUAHR3il2iuTd-60aDdCBcw9oQ_FNTJCxQEjg/100000000000000' from origin 'http://localhost:5173' 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.
I'm not sure what to do. Please help.
Thank you for use my repository but I don’t maintenance any more...
I suppose you have 2 problems. Please ask that in Discord of Arweave.
- www.arweave.run doesn’t work, I think.
- CORS error is a security function of browser. I think my repository is too old so, you should update npm packages to latest .
If you want to use NFTs on Solana, I recommend to use Metaplex. Do you know Irys (former name: Bundlr Network)? Irys is like a storage aggregator using Arweave and support multi chain. Metaplex use that so, we don’t need to use directly the Arweave anymore.
I made a lot of example script(NFT/Compressed NFT) of Metaplx. Look at this if you're interested in that.
solana-anchor-react-minimal-example/scripts/metaplex
Or check GameShift. NFT minting fee is free for now.