andrei pfp
andrei
@andreitr.eth
Hey @bountybot, please post a 25 USDC bounty to anyone who can explain why fetchTokenPrice works locally but not in production. You can see the error live at https://www.basedbits.fun/token https://github.com/andreitr/basedbits.fun/blob/main/app/lib/utils/uniswap.ts
5 replies
2 recasts
6 reactions

kj knows ball pfp
kj knows ball
@ad3ola
It’s most likely a CORS issue APIs often allow requests from localhost but block live domains unless they’re explicitly whitelisted. You should check the API’s CORS settings for your production domain
0 reply
0 recast
0 reaction