spacewander commented on issue #7082:
URL: https://github.com/apache/apisix/issues/7082#issuecomment-1132432813

   > OPTIONS is already in Route, but OPTIONS request without env responds with 
404 due to adding advanced match condition env=dev.
   
   You can use `OR` syntax to include OPTIONS request without header: 
https://github.com/api7/lua-resty-expr#synopsis
   
   > I have an idea, I use APISIX+NACOS to discover services in my microservice 
environment, dev is actually the namespace in NACOS, the current namespace is 
fixed, if namesapce can pass the env in the HTTP request header as a parameter, 
Then I don't need to match different routes through env, so the number of 
routes is also reduced, and there is no need to configure a route for a 
namespace separately.
   
   It seems you can use the traffic-split plugin to select upstream dynamically 
instead of putting them to different routes.


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