coder2z commented on issue #11738:
URL: https://github.com/apache/apisix/issues/11738#issuecomment-2918778815

   The modified forward-auth plugin works for me.
   
   ```
       -- append headers that need to be get from the auth response header
       for _, header in ipairs(conf.upstream_headers) do
           local header_value = res.headers[header]
           if header_value then
               core.request.set_header(ctx, header, header_value)
           elseif conf.overwrite_upstream_headers then
               core.request.set_header(ctx, header, nil)
           end
       end
   ```


-- 
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

Reply via email to