I did some more digging and it’s definitely related to the moralis RPC endpoint. Using an Infura ID works:
WalletConnectWeb3Connector.js #169:
if (typeof WalletConnectProvider === 'function') {
///this.provider = new WalletConnectProvider(config);
new WalletConnectProvider({
infuraId: "xxxxxxxxxxxxxxxxx",
});
}
Still getting heaps of issues with WC, trying to buy an NFT results in revert ‘you cannot buy from yourself’ hahaha. Terrible WC, has been from the start. (see Signer issues when using Wallet Connect or Magic Link together with MetaMask)
But let’s start by fixing the RPC endpoint issue.
I get a similar CORS error by the way if I use an invalid infura key, so it’s probably related to auth and not to actual CORS.