SkyeYoung commented on code in PR #12551: URL: https://github.com/apache/apisix/pull/12551#discussion_r2323867167
########## apisix/init.lua: ########## @@ -599,6 +587,53 @@ function _M.handle_upstream(api_ctx, route, enable_websocket) end +local function handle_x_forwarded_headers(api_ctx) + local addr_is_trusted = trusted_addresses_util.is_trusted(api_ctx.var.realip_remote_addr) + + if not addr_is_trusted then + -- store the original x-forwarded-* headers for later process Review Comment: There is no follow-up processing at present, just to prevent it from being used in some plugins or processes in the future. I can adjust the description for precise expression. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
