vincentwc opened a new issue #4228:
URL: https://github.com/apache/apisix/issues/4228


   ### Issue description key-auth插件自定义header失败
   ip如下  82是我创建route的id  请求为patch
   {{ip_addr}}:9080/apisix/admin/routes/82
   首先,创建一个默认的key-auth,返回成功,
   {
       "plugins": {
           "key-auth": {
           }
       }
   }
   并且header中添加apiKey=auth-one能够成功返回响应结果
   再次:通过patch创建一个自定义header的插件,返回失败
   {
       "plugins": {
           "key-auth": {
               "header": "Authorization"
           }
       }
   }
   错误信息如下
   `{
       "error_msg": "failed to check the configuration of plugin key-auth err: 
additional properties forbidden, found header"
   }`
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.5
   * OS (cmd: `uname -a`):
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
   * etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   * apisix-dashboard version, if have:
   * luarocks version, if the issue is about installation (cmd: `luarocks 
--version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to