Revolyssup commented on code in PR #12405:
URL: https://github.com/apache/apisix/pull/12405#discussion_r2191447922


##########
apisix/plugins/forward-auth.lua:
##########
@@ -41,6 +44,21 @@ local schema = {
             items = {type = "string"},
             description = "client request header that will be sent to the 
authorization service"
         },
+        extra_headers = {
+            type = "object",
+            minProperties = 1,
+            patternProperties = {
+                ["^[^:]+$"] = {
+                    oneOf = {
+                        { type = "string" },
+                        { type = "number" },

Review Comment:
   proxy-rewrite plugin headers field also uses this schema. `"extra_headers": 
{"id": 10}`  can also be supported



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

Reply via email to