When I send the cookies from the front-end (nextjs-reactjs), at the back-end (django-rest-framework) I get an empty dictionary with request.COOKIES

in the nextjs getServerSideProps i send request to api with this code : const groups = await api.getGroups()

and the getGroups is : const getGroups = async ()=>{ const { data } = await api.get("http://localhost:8000/group", {withCredentials: true}) return data }

in the back-end i print the request.COOKIES but it retruns an empty dictionary

I'm using JWT authentication in the dj-rest-auth

Back to Top