azura27 opened a new issue #4717: URL: https://github.com/apache/apisix/issues/4717
### Issue description ### Environment Bug report without environment information will be ignored or closed. * apisix version (cmd: `apisix version`):2.0 * OS (cmd: `uname -a`): centos 7.4 * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): 1.17.8.2 * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):3.5 * apisix-dashboard version, if have: * luarocks version, if the issue is about installation (cmd: `luarocks --version`): ### Minimal test code / Steps to reproduce the issue Bug report without steps to reproduce will be ignored or closed. 1. set a route with cors open, OPTIONS method support 2.visit route with OPTIONS method, return response with no allow-control-allow-origin etc. headers 3. ### What's the actual result? (including assertion message & call stack if applicable) response with no allow-control-allow-origin etc. headers ### What's the expected result? response with allow-control-allow-origin etc. headers For split backend and frontend environment OPTIONS method is used frequently, so return in rewrite stage is not suitable -- 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]
