You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/08/01 07:11:48 UTC
[GitHub] [apisix] tzssangglass commented on issue #4717: bug:
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org