[Answered ]-Vue.js-Failed to load resource: the server responded with a status of 401 (Unauthorized)

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.

Leave a comment