首页 > 其他分享 >tp5.0如何获取header的Authorization值

tp5.0如何获取header的Authorization值

时间:2023-01-31 14:55:14浏览次数:35  
标签:tp5.0 HTTP 如何 获取 header Authorization

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

 

解决方案:

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

 

 

标签:tp5.0,HTTP,如何,获取,header,Authorization
From: https://www.cnblogs.com/xm666/p/17078960.html

相关文章