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/12/23 01:13:20 UTC
[GitHub] [apisix] spacewander commented on a change in pull request #5890: fix(cors): compatible with scenarios where origin is modified
spacewander commented on a change in pull request #5890:
URL: https://github.com/apache/apisix/pull/5890#discussion_r774258023
##########
File path: apisix/plugins/cors.lua
##########
@@ -227,14 +227,15 @@ end
function _M.rewrite(conf, ctx)
+ ctx["raw-request-origin"] = core.request.header(ctx, "Origin")
Review comment:
```suggestion
ctx.original_request_origin = core.request.header(ctx, "Origin")
```
would be better.
Please also add a comment about this change.
--
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