Apache strips down “Authorization” header

后端 未结 2 1057
栀梦
栀梦 2020-12-03 01:44

I\'m having a little issue with my Apache 2.2.15 Server. I\'m running a Django app on top of it with mod_wsgi. I activated WSGIPassAuthorization On, which made

2条回答
  •  温柔的废话
    2020-12-03 02:17

    Several modules will strip the Authorization header to try to enhance security by preventing scripts from seeing usernames, passwords, etc... unless the developer explicitly enables this. Many of these modules will allow this header if you simply add the following line to .htaccess: CGIPassAuth on (source: Apache docs and StackOverflow)

提交回复
热议问题