[GitHub] [apisix] zuiyangqingzhou commented on a change in pull request #5890: fix(cors): compatible with scenarios where origin is modified

2021-12-22 Thread GitBox
zuiyangqingzhou commented on a change in pull request #5890: URL: https://github.com/apache/apisix/pull/5890#discussion_r774268868 ## File path: apisix/plugins/cors.lua ## @@ -227,14 +227,15 @@ end function _M.rewrite(conf, ctx) +ctx["raw-request-origin"] = core.reques

[GitHub] [apisix] zuiyangqingzhou commented on a change in pull request #5890: fix(cors): compatible with scenarios where origin is modified

2021-12-23 Thread GitBox
zuiyangqingzhou commented on a change in pull request #5890: URL: https://github.com/apache/apisix/pull/5890#discussion_r774403967 ## File path: t/plugin/cors.t ## @@ -927,3 +927,70 @@ Access-Control-Max-Age: Access-Control-Allow-Credentials: --- no_error_log [error] + + + +