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
Similar Posts:
- How to Solve Curl pass large JSON files Error
- Django @csrf_exempt Cannot work in class view (Django @csrf_exempt not working in class View)
- [Solved] Django use search_fields error (in get_lookup_constraint)
- Call JIRA API to create issue prompt xsrf check failed
- [Solved] react native TypeError: Network request failed Unable to symbolicate stack trace: The stack is null
- Django admin Error: ‘WSGIRequest’ object has no attribute ‘user’
- Postman reported an error unsupported media type [How to Solve]
- Django exception-ImportError: No module named django.core.management
- TP5 variable type error: array [How to Solve]
- [How to Solve] Unexpected end of file from server