By default, the Django Rest Framework has two authentication classes, see here .
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.SessionAuthentication', 'rest_framework.authentication.BasicAuthentication' )}
You can disable authentication for the rest of the infrastructure if you do not need it.
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': () }
Or you can only remove BasicAuthentication , as it will work in your case.
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework.authentication.SessionAuthentication' )}
source share