Django Rest Framework - Authentication credentials were not provided

前端 未结 12 1694
野性不改
野性不改 2020-12-04 07:12

I\'m developing an API using Django Rest Framework. I\'m trying to list or create an \"Order\" object, but when i\'m trying to access the console gives me this error:

<
12条回答
  •  甜味超标
    2020-12-04 08:04

    If you are runnig Django on Apache using mod_wsgi you have to add

    WSGIPassAuthorization On
    

    in your httpd.conf. Otherwise authorization header will be stripped out by mod_wsgi.

提交回复
热议问题