wharfkit / wallet-plugin-wombat

WalletPlugin for the Wharf Session Kit. Allow users to login and sign transactions with Wombat wallet.
https://wharfkit.com
Other
1 stars 1 forks source link

Error: Unable to connect with Desktop Wombat wallet #8

Closed whattocode closed 1 year ago

whattocode commented 1 year ago

Hi guys, my console displays the message: "CORS Policy Blocking Fetch Requests to External Domain from Localhost". However, connecting with Anchor Wallet poses no issues.

This is my sessionKit setup: const sessionKit = new SessionKit({ appName: APP.name, chains: [Chains.EOS], ui: new WebRenderer(), walletPlugins: [ new WalletPluginAnchor(), new WalletPluginWombat(), ], });

Console log: Screenshot 2023-09-18 at 11 40 00 PM

aaroncox commented 1 year ago

The way Wombat (and Scatter and TokenPocket) work is through websocket connections to localhost - and because of all the headaches that can cause, they try connecting like a dozen different ways. The vast majority of them fail and result in weird errors like this, which if you go into the network panel and watch, you'll see whenever they try to connect.

Unfortunately this is a result of that, and isn't actually an issue with the Session Kit or any of its plugins, but is an issue with unhandled errors in their SDKs. Without going and changing their SDKs there's not much we can do here.