Next js is unable to access cookies set from node js ( express server)
I have next js app as Frontend and node js ( express) as backend , i am trying to set a cookies from my node.js app , the process works pretty fine on my locahost , node js properly set the cookies and browser saves it and nextjs middleware access the cookies and let Authenticated user access the protected route , but now problem comes when i hosted the nextjs app on aws amplify and my nodejs app on aws beanstalk now problem is that when user logged in successfully the server set the cookies perfectlty as i can see in response the cookies are set as expected from my backend, but when i get refersh the page or makes a redirect to protected route my cookies actually disappear and in middleware i got no cookies printed it