I am using Nextjs as my frontend and Django as a backend server. I have configured django and Nextjs to run under the same domain and I was able to use django default session based authentication from my nextjs application. After logging in when I make a request from client side using Nextjs the request works perfectly since the Nextjs request is sending the sessionid cookie to the django server. The issue comes when I try to use NextJs server-side rendering. When I try to send a request from getServerSideProps in Nextjs django responds with "Authentication credentials not provided" I want to send request to my django server from getServerSideProps function for SEO What should I do to solve this issue.
Thanks in advance.