256hax / solana-arweave-react-mint-nft-example

Mint NFT with React on Arweave and Solana chain for customizable example.
https://256hax.github.io/solana-arweave-react-mint-nft-example/
MIT License
15 stars 1 forks source link

CORS Error #1

Open Vindorable opened 5 months ago

Vindorable commented 5 months ago

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.

256hax commented 5 months ago

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.

  1. www.arweave.run doesn’t work, I think.
  2. 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.