HELP PROXY NEXT 14
Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Australian Freshwater CrocodileOP
I am using Next.js 14 and encountering CORS issues when calling an API. The backend has CORS configured correctly, but I still face errors when making API calls from the frontend and even directly from the Next.js server. I have explored the rewrites() function, which Next.js provides as a proxy, but it seems not to be working. I tried creating an external proxy server, and it works for API calls. How can I handle CORS without the need to create an external proxy server and still be able to make API calls?