I currently have an express server handling my back-end operations. I am now in the process of transitioning my front-end to nextJS and would like to set up a proxy for my nextJS requests to access the port that my back-end is running on. Is it possible to achieve this?
One major challenge I am facing is the inability to utilize authentication cookies because the back-end handles the OAuth flow on port 5000 while the front end is hosted on port 3000. My prefered solution would be to route everything through port 3000, with nextJS quietly redirecting in the background to enable me to use session cookies normally.