Tag Archives: Authentication credentials were not provided.

After deploying Django Apache in win10, an error is reported: authentication credentials were not provided

How did “people you might know” find you on social software>>>

I deployed Django Apache service in the lower part of win10, but after deployment, the access interface reported an error

Authentication credentials were not provided.

I didn’t provide the identity certificate. I used Django rest_ Framework framework

But I’ve written headers

{“Authorization”:“token 38fff87b5c09ad574d29449009a409dfb9d3df5e”,

“Content-Type”:“application/json”}

And it’s no problem for me to start access directly with Python

Then I go to Baidu to search,. It was found that it was a problem with Apache

You need to add a sentence to the configuration file:

SetEnvIf Authorization “(.*)” HTTP_ AUTHORIZATION=$1

After saving and exiting, restart Apache to access it