Solved: unauthorized vue django rest framework

One of the main problems with unauthorized use of the Rest Framework is that it can be used to access sensitive data and resources on a web server. This can be done by using the framework to create custom endpoints that allow access to resources outside of the normal web application context. This can allow unauthorized users to gain access to sensitive data or resources, or even inject malicious code into the application itself. vue-router I am using Django Rest Framework with Vue.js and vue-router. When I try to access the page, I get a 401 error: { “detail”: “Authentication credentials were not provided.” } My from django.contrib import admin from django.urls import path, include urlpatterns = [ path(‘admin/’,…

Django REST Framework – How to add custom fields in serializer? vue django rest framework vue-router I’m trying to add some custom fields in my serializer but it’s not working for me, here is my code: class User(AbstractUser): email = models.EmailField(unique=True) first_name = models….

Vue Router – How can i redirect user after login? vue django rest framework vue-router Here is my code for login component: