1👍
✅
I think you set the API permission as IsAuthenticated
, but you didn’t set the authentication header in the frontend.
Please add the authentication header or set the permission_classes
as [permissions.AllowAny]
in the api view.
Source:stackexchange.com