tp5.0如何获取header的Authorization值

tp5.0如何获取header的Authorization值

tp5.0如何获取header的Authorization值
$request->header();好像没有这个值的
但是发送请求头部有的

解决方案:

在.htaccess 文件中加入 设置 SetEnvIf Authorization ^(.*) HTTP_AUTHORIZATION=$1

tp5.0如何获取header的Authorization值

 tp5.0如何获取header的Authorization值

 tp5.0如何获取header的Authorization值