pokt-network / wallet

A simple web wallet to handle your Pocket Network accounts.
wallet-three-orpin.vercel.app
MIT License
8 stars 14 forks source link

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. #434

Open icculp opened 1 year ago

icculp commented 1 year ago

Describe the bug Wallet balances showing zero for US customers. Console logs the following error: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

To Reproduce Steps to reproduce the behavior: Log into the wallet from US, see the error in the console

Expected behavior Wallet balance reflects current state of the chain at all times, no matter what.

Screenshots image

Access to XMLHttpRequest at 'https://mainnet.gateway.pokt.network/v1/lb/60a2ac11b1747c6552385c61/v1/query/node' from origin 'https://wallet.pokt.network' 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.

Desktop (please complete the following information): Multiple clients have reported this issue, but I have confirmed using chrome on windows, vpn connects to dallas.

Additional context It is alarming for anyone interacting with this ecosystem to log into their wallet and see their funds missing and the account unstaked, or so it may appear to them at first... It is my hope that whatever bug caused it this time, or last, or the time before that maybe we can find a way to ensure changes are caught in real time, before users freak out and tell us about it.