Inside one of my next.js api route,
For example: pages/api/example.js
I have the following simple code. Then, inside this route, I have post request to a server.
export default async function example(req, res) {
   
  const data = await axios.post(
     https://another_server_Url, // another server api
    {
      data
    })
  res.status(200).json({ name: 'John Doe' })
}
My question is if the another_server api implement a rating-limiting mechanism,
It's possible for me to get the user IP address first, then somehow pass the IP address via the axios request. So the another_server api can recognize the true ip.
As far as I understand the current code, the next.js server somehow becomes a proxy.
The problem now is that because I called the Api inside my next router api, the ip address will always be my next.js server.
 
     
    