Error in Walletconnect

"moralis": "^1.2.7",
"react-moralis": "^1.2.5",

I meet the errors below in the browser console after enableWeb3 with walletconnect around a few mins, metamask is totally fine…

  1. Access to XMLHttpRequest at ‘https://speedy-nodes-nyc.moralis.io/WalletConnect/avalanche/mainnet’ from origin ‘https://XXXXXXXX.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

  2. Uncaught Error: PollingBlockTracker - encountered an error while attempting to update latest block

  3. uncaught (in promise) Error: Callback was already called

@mui/icons-material”: “^5.1.1”,
@mui/material”: “^5.1.1”,
@mui/styled-engine”: “npm:@mui/styled-engine-sc@latest”,
@mui/styled-engine-sc”: “^5.1.0”,
@mui/styles”: “^5.1.1”,
@sentry/react”: “^6.13.2”,
@sentry/tracing”: “^6.13.2”,
@testing-library/jest-dom”: “^5.11.4”,
@testing-library/react”: “^11.1.0”,
@testing-library/user-event”: “^12.1.10”,
@typechain/ethers-v5”: “^7.0.1”,
@types/faker”: “^5.5.9”,
@types/jest”: “^26.0.15”,
@types/material-ui”: “^0.21.9”,
@types/node”: “^12.0.0”,
@types/react”: “^17.0.0”,
@types/react-dom”: “^17.0.0”,
@types/react-router-dom”: “^5.3.3”,
@types/styled-components”: “^5.1.11”,
@types/web3”: “^1.2.2”,
@walletconnect/web3-provider”: “^1.7.1”,
“clsx”: “^1.1.1”,
“ethers”: “^5.4.1”,
“ethers-multicall”: “^0.2.2”,
“faker”: “^5.5.3”,
“hardhat”: “^2.4.3”,
“magic-sdk”: “^8.0.1”,
“millify”: “^4.0.0”,
“moralis”: “^1.2.7”,
“query-string”: “^7.1.0”,
“react”: “^17.0.2”,
“react-dom”: “^17.0.2”,
“react-ga”: “^3.3.0”,
“react-router-dom”: “^6.2.1”,
“react-moralis”: “^1.2.5”,
“react-scripts”: “4.0.3”,
“string_decoder”: “^1.3.0”,
“styled-components”: “^5.3.3”,
“typescript”: “^4.5.3”,
“web-vitals”: “^1.0.1”

This same thing happened to me in production environment. In order to fix the issue, I had to clear the cookies and session data in chrome relating to the website and then reload. Once I did that, everything worked again.