Virus-Axel / godot-solana-sdk

Build Solana games with godot. This GDExtension will enable godot to make on-chain and Solana integrated games.
MIT License
38 stars 12 forks source link

Mainnet-beta forbids XMLHTTPRequests #108

Closed Virus-Axel closed 11 months ago

Virus-Axel commented 1 year ago

There is a 403 forbidden error when calling a SolanaClient function to the mainnet-beta.

Someone said that "the public mainnet beta endpoints block requests with a CORS header, meaning requests from a browser". having SolanaClient static turned out to be a challenge. There is an option to have poll timers for the client, try fetch API and poll timers or force SolanaClient to be in scene tree to work.

Virus-Axel commented 1 year ago

I can't see how anyone manages to access official Solana RPC URL for mainnet. CORS is blocking that URL out and quicknode URLs could be a workaround.

Virus-Axel commented 11 months ago

Use quicknode URL