aiyiyi121 opened a new issue, #7255:
URL: https://github.com/apache/apisix/issues/7255
### Description
```
if conf.allow_headers == "**" then
core.response.set_header("Access-Control-Allow-Headers",
core.request.header(ctx, "Access-Control-Request-Headers"))
else
core.response.set_header("Access-Control-Allow-Headers",
conf.allow_headers)
end
```
I'm confused,why set the response header `Access-Control-Allow-Headers` as
`Access-Control-Request-Headers` when ’allow_headers‘ is ‘**’. If the value of
`Access-Control-Request-Headers` is null, the value of
`Access-Control-Allow-Headers` will be null too, and then leads to problems
### Environment
- APISIX version (run `apisix version`): 2.10
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
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]