boekkooi-lengoo commented on code in PR #9010:
URL: https://github.com/apache/apisix/pull/9010#discussion_r1127525273


##########
apisix/plugins/cors.lua:
##########
@@ -178,6 +179,9 @@ function _M.check_schema(conf, schema_type)
             end
         end
     end
+    if conf.allow_origins == "" and (not conf.allow_origins_by_regex or 
next(conf.allow_origins_by_regex) == nil) then

Review Comment:
   Thanks @spacewander I knew there should be a better way but my lua foo is 
not very good :slightly_smiling_face: 
   
   I will update this once we are clear on the `metadata_schema` item.



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