batman-ezio commented on a change in pull request #3839:
URL: https://github.com/apache/apisix/pull/3839#discussion_r596543640



##########
File path: apisix/plugins/cors.lua
##########
@@ -73,7 +75,19 @@ local schema = {
                 "if you set this option to 'true', you can not use '*' for 
other options.",
             type = "boolean",
             default = false
-        }
+        },
+        allow_origins_by_regex = {
+            type = "array",
+            description =
+                "you can use regex to allow specific origins when no 
credentials," ..
+                "for example use [.*.test.com] to allow a.test.com and 
b.test.com",

Review comment:
       fixed




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


Reply via email to