How to enable WSGIPassAuthorization for Django?

非 Y 不嫁゛ 提交于 2019-12-24 07:09:13

问题


I am testing my Django API endpoints but I need to enable WSGIPassAuthorization to let Authorization header be received. Where should I enable it?

PS: I am on macOS, but any answer might be useful!


回答1:


If you are using mod_wsgi, just install apache and use it inside your VirtualHost.

And then: WSGIPassAuthorization On



来源:https://stackoverflow.com/questions/49340534/how-to-enable-wsgipassauthorization-for-django

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!