pancakeswap / pancake-info-api

Serverless API implementation for PancakeSwap on-chain data query.
328 stars 273 forks source link

API request give CORS error #107

Open Halder68 opened 2 years ago

Halder68 commented 2 years ago

Hi Guys, Since yesterday I receive CORS errors at fetching of token price with the following message: No 'Access-Control-Allow-Origin' header is present ...

Everything worked flawlessly before and nothing has changed my side. Has anything changed with the API access? Has the number of requests been limited?

Thanks

anasshad commented 2 years ago

Same issue with me.

urielkdev commented 2 years ago

Same issue here, can you help us @ChefKai ?

ugwusomto commented 2 years ago

same here

ugwusomto commented 2 years ago

Guys, try making the request. from a server, you control and can set cors headers In your server --- make a request to pancakeswap fetch the data and return it to your front end In your front end --- Make a request to your own API

ugwusomto commented 2 years ago

This https://stackoverflow.com/questions/43871637/no-access-control-allow-origin-header-is-present-on-the-requested-resource-whe

can help

happyeric77 commented 2 years ago

Hello all, I am also suffering from the same issue. It had been working well until around 1 week ago. Does anyone figure out what is happening? It seems pancakeswap has blocked cros access.

Screen Shot 2021-12-14 at 12 45 58
amber0515 commented 2 years ago

Same issue here.

amber0515 commented 2 years ago

I used the cors plugin of chrome, the cors testing is passed, but nothing change here.