Symfony 2.3 getRequest()->headers not showing Authorization Bearer Token
问题 I am passing an Authorization: Bearer { Token } as a HTTP request to my Symfony Rest Controller. My Request: GET /app_dev.php/api/members HTTP/1.1 Host: localhost Authorization: Bearer 123456789 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Inside My controller: $this->getRequest()->headers; For some reason when I use Symfony's Request method the Authorization header isn't available to my controller. When I use PHP's getallheaders() the Authorization header shows up