kayx23 commented on code in PR #12435: URL: https://github.com/apache/apisix/pull/12435#discussion_r2215429554
########## docs/en/latest/plugins/forward-auth.md: ########## @@ -187,11 +187,12 @@ curl -X PUT 'http://127.0.0.1:9180/apisix/admin/routes/auth' \ "functions": [ "return function(conf, ctx) local core = require(\"apisix.core\") - if core.request.header(ctx, \"tenant_id\") then + local tenant_id = core.request.header(ctx, \"tenant_id\") + if tenant_id == \"123\" then core.response.set_header(\"X-User-ID\", \"i-am-an-user\"); Review Comment: Maybe remove this line to avoid any confusion? Since users will not actually observe this response header in this example. -- 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. To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org