tzssangglass commented on issue #4717:
URL: https://github.com/apache/apisix/issues/4717#issuecomment-890465606


   I think it's expected behavior, and take a look at this: 
https://github.com/apache/apisix/issues/1100
   
   source code for `cors` plugin handling OPTIONS method: 
https://github.com/apache/apisix/blob/9db2dd2399c3970df1e1b7fa0f8b7dcd92d26b1c/apisix/plugins/cors.lua#L227-L231
   
   The OPTIONS method is a preflight request to check if CORS is supported, so 
the OPTIONS response header should not require the `allow-control-allow-origin` 
header.


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