Request headers bag is missing Authorization header in Symfony 2?

前端 未结 8 1519
别那么骄傲
别那么骄傲 2020-11-29 01:30

I\'m trying to implement a custom authentication provider in Symfony 2. I\'m sending a test request using Fiddler and printing all headers server side; well, Authoriza

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 01:38

    You must add this code to a virtualhost tag

    It will not work if you put it in a Directory tag.

        RewriteEngine On
        RewriteCond %{HTTP:Authorization} ^(.*)
        RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
    

提交回复
热议问题