You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "1450793561 (via GitHub)" <gi...@apache.org> on 2025/03/14 01:49:52 UTC
[I] bug: version apisix3.9 ,dashboard version 3.0.1,The console displays an exception. [apisix-dashboard]
1450793561 opened a new issue, #2976:
URL: https://github.com/apache/apisix-dashboard/issues/2976
### Current Behavior
According to this official documenthttps://apisix.apache.org/zh/docs/apisix/3.9/plugins/proxy-rewrite/, when you use the header.add interface to add something, it will be displayed in the console like this:
<img width="943" alt="Image" src="https://github.com/user-attachments/assets/0b5016da-8e64-4e16-a7f5-d3ff814de51a" />
Use the following call interface parameters.
`{
"uri": "/111111*",
"upstream_id": "web",
"hosts": [
"abc12.com"
],
"name": "111111",
"desc": "1111111n",
"plugins": {
"response-rewrite": {
"headers": {
"Cache-Control": "$cache"
}
},
"proxy-rewrite": {
"headers":{
"add": {
"Host": "$host",
"X-Real-IP": "$remote_addr",
"X-Forwarded-For": "$proxy_add_x_forwarded_for"
}
}
}
},
"timeout": {
"connect": 3,
"send": 3,
"read": 3
}
}`
### Expected Behavior
_No response_
### Error Logs
_No response_
### Steps to Reproduce
`{
"uri": "/111111*",
"upstream_id": "sign-web",
"hosts": [
"abc12.com"
],
"name": "111111",
"desc": "1111111n",
"plugins": {
"response-rewrite": {
"headers": {
"Cache-Control": "$cache"
}
},
"proxy-rewrite": {
"headers":{
"add": {
"Host": "$host",
"X-Real-IP": "$remote_addr",
"X-Forwarded-For": "$proxy_add_x_forwarded_for"
}
}
}
},
"timeout": {
"connect": 3,
"send": 3,
"read": 3
}
}`
### Environment
- APISIX version (run `apisix version`):
- 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: notifications-unsubscribe@apisix.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org