leapwallet / cosmos-metamask-snap

Leap Metamask Cosmos Snap for making cosmos transactions
https://leapwallet.io
Other
8 stars 7 forks source link

Blocked by CORS when doing transaction #82

Open kombos opened 6 months ago

kombos commented 6 months ago

When i'm trying to perform a transaction using Metamask Snap for LeapWallet, the following error showcases:

Cannot read properties of undefined (reading 'authInfoBytes')

Further log shows a 'blocked by CORS policy error':

Access to XMLHttpRequest at 'https://rpc-assetmantle-ia.cosmosia.notional.ventures/' from origin 'https://names.assetmantle.one' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
rpc-assetmantle-ia.cosmosia.notional.ventures/:1 
Failed to load resource: net::ERR_FAILED
rpc-assetmanle.d-stake.xyz/:1 
Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID

I've implemented it in a NextJS app (v13.4.19)