且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用于 yii2 的 REST API,身份验证器 (HttpBearerAuth) 在服务器上不起作用

更新时间:2023-09-20 21:37:16

就我而言,问题是服务器删除了 Authorization Header我需要将此添加到 .htaccess

In my case the Problem was that the server removes Authorization Header I needed to add this to .htaccess

 SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1