Next.js Discord

Discord Forum

CORS Error when fetching from 3rd party API

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
Hi - I'm working with next.js, and was wondering if someone could give me a hand with a CORS error?

Inside of a client component, I'm trtying to make the following request using Axios:

      const res = await axios.get(`https://games.roblox.com/v1/games?universeIds=${data}`, {});


When run in my browser and postman, it executes perectly - fetching the data as excepted, however when run from my Next.js app, I get the following CORS error:

Any suggestions?

0 Replies