Cors error
Hello, I keep getting a cors error when trying to logout in my application. Im using nextjs on the frontend, and have a different express backend. I'm pretty new, and cant really tell whether it's coming from the backend or the frontend
Frontend: localhost:3000
Backend: localhost:3030
Error:
On the express backend, I have set up cors options like this:
And this is the logout function from the backend:
Does anyone know how to fix the error?
Frontend: localhost:3000
Backend: localhost:3030
Error:
On the express backend, I have set up cors options like this:
And this is the logout function from the backend:
Does anyone know how to fix the error?
