I have the following piece of code in Laravel BaseController. I want to protect all my api resources with an Authorization header with a token.
Authorization
pu
It is a Laravel & Apache problem, this line in public/.htaccess fixed it for me:
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
The fix is from https://github.com/dingo/api/issues/54