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] + + + +=== TEST 34: origin was modified by the proxy_rewrite plugin +--- config + location /t { + content_by_lua_block { + local t = require("lib.test_admin").test + local code, body = t('/apisix/admin/routes/1', + ngx.HTTP_PUT, + [[{ + "plugins": { + "cors": { + "allow_origins": "http://sub.domain.com", + "allow_methods": "GET,POST", + "allow_headers": "headr1,headr2", + "expose_headers": "ex-headr1,ex-headr2", + "max_age": 50, + "allow_credential": true + }, + "proxy-rewrite": { + "Origin": "http://example.com" + } Review comment: oh, I will fix it -- 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-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org