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 as expected. Any Ideas on why Symfony isn't seeing it?
Thanks