Firstsawyou edited a comment on issue #4078: URL: https://github.com/apache/apisix/issues/4078#issuecomment-822231019
> I want upstream to know witch consumer is accessing it. You can try to use the proxy-rewrite plugin to add the `consumer nam` field to the request header and carry it upstream. like this: ```shell curl http://127.0.0.1:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "uri": "/route01", "plugins": { "jwt-auth": {}, "proxy-rewrite": { "headers": { "consumer-name": "$consumer_name" } } }, "upstream": { "type": "roundrobin", "nodes": { "127.0.0.1:1981": 1 } } }' ``` -- 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]
