anza-xyz / solana-pay

A new standard for decentralized payments.
https://solanapay.com
Apache License 2.0
1.31k stars 462 forks source link

I got CORS issue on https://solanapay.genesysgo.net/ #124

Closed yao3060 closed 2 years ago

yao3060 commented 2 years ago

image

Since yesterday afternoon (2022-04-28 utc+8)

Does anybody know?

jordaaash commented 2 years ago

This is a new issue with GenesysGo -- they have started requiring authorization to use the API.

For now, I'd try using https://api.mainnet-beta.solana.com. @cogoo we should get to the bottom of this and update the point of sale app if needed.

jordaaash commented 2 years ago

Reopened this issue until we update the app / docs.

metasal1 commented 2 years ago
image

Mainnet getting 429.

There seems to be a infinite loop when on the number pad screen and on the qr code.

There shouldn't be any reason to call the API at these stages.

metasal1 commented 2 years ago

Ok - based on further reading, it seems yes we do need to poll the API for status changes.

In the interim, I have set the API endpoint to https://solana-mainnet.phantom.tech/ so Phantom wallets are go for now.

jordaaash commented 2 years ago

Thanks @metasal1, I updated the default (16c6f56f4bcc77ec7518b8081f72102e756661a6) to use Phantom's endpoint per your testing.