美文网首页
apache2 不传 header的Authorization

apache2 不传 header的Authorization

作者: 竞媒体 | 来源:发表于2019-06-19 17:06 被阅读0次

    Django + rest_framework_jwt   认证报错  {"detail":"Authentication credentials were not provided."}

    解决方法是在apache配置文件中加入 

    WSGIPAssAuthorization On

    我的配置是这样的 

    WSGIScriptAlias / /home/op/devops/devops/wsgi.py

    WSGIPAssAuthorization On

     <Directory /home/op/devops/devops/>

            <Files wsgi.py>

            Require all granted

            </Files>

       </Directory>

    相关文章

      网友评论

          本文标题:apache2 不传 header的Authorization

          本文链接:https://www.haomeiwen.com/subject/wonkqctx.html