Not setting up the authentication is the reason you are facing this problem. Please try to integrate django-rest-framework-simplejwt on django side. This token usually contains the user id and on frontend side you can save this token in localstorage to make the calls for rest of the endpionts.