endison1986 opened a new issue, #7082:
URL: https://github.com/apache/apisix/issues/7082

   ### Description
   
   When I configured the advanced matching condition `env=dev` on Route and 
added the CORS plugin. Then I send a request through axios with the request 
header `env:dev`, then the browser initiates a preflight request `OPTIONS`, and 
I get a 404 return.
   
   
当我在Route上配置了高级匹配条件`env=dev`,并且添加了CORS插件后。然后我通过axios发送请求,并携带请求头`env:dev`,这时浏览器发起了一个预检请求`OPTIONS`,而我得到了一个404的返回。
   
   
![1652942235(1)](https://user-images.githubusercontent.com/7878324/169226393-998d98e7-c040-472a-b424-0b55006076ef.png)
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.12.1
   - Operating system (run `uname -a`):Linux apisix-server-cd8564555-2njxg 
3.10.0-514.26.2.el7.x86_64 # 1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 
x86_64 GNU/Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx 
-V`):openresty/1.19.9.1
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):


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