JWT auth is not working on apache server
First of all, set up Django with apache with this
https://gulshan1996.blogspot.com/2020/08/set-up-django-with-apache.html
If your JWT auth is not working on apache server, This is because of Apache block the header
So you have to enable them by, adding this line in apache conf file
WSGIPassAuthorization On
WSGIScriptAlias / /home/farmafeed/manageFarmafeed/farmafeedProject/wsgi.py
<Directory /home/farmafeed/manageFarmafeed>
Order allow,deny
Allow from all
</Directory>
Note: /home/farmafeed/manageFarmafeed/farmafeedProject this is my URL
Just Add
WSGIPassAuthorization On
&&
<Directory /home/farmafeed/manageFarmafeed>
Order allow,deny
Allow from all
</Directory>
Comments
Post a Comment