Redirecting from Next.js Landing Page to old ASP e-commerce Cart.
Unanswered
Philippine Crocodile posted this in #help-forum
Philippine CrocodileOP
Hi, I have a task to redirect a user from our newly build, shiny Next.js Landing Page to an ASP e-commerce Cart. I need to create a session on the old website, store the session/cookies, make a POST request to their API using those credentials and finally redirect to the old e-commerce cart page.
The only problem is I'm getting CORS error when trying to create the session from the Next.js Landing Page. I could ask them to add the landing page/my dev env. to their allow origins headers, but they're very slow and unresponsive and I would like to get this done fast.
Is there any other way to accomplish this? Has anyone ever done something similar to this before?
I'm using Next.js 14 with the App Directory,
The only problem is I'm getting CORS error when trying to create the session from the Next.js Landing Page. I could ask them to add the landing page/my dev env. to their allow origins headers, but they're very slow and unresponsive and I would like to get this done fast.
Is there any other way to accomplish this? Has anyone ever done something similar to this before?
I'm using Next.js 14 with the App Directory,