dashixiongsk opened a new issue, #11050:
URL: https://github.com/apache/apisix/issues/11050
### Current Behavior
The forward auth plugin uses post requests, request_headers configures
Content Type request headers, and requests timeout
### Expected Behavior
_No response_
### Error Logs
_No response_
### Steps to Reproduce
this is my config:
```
"forward-auth": {
"_meta": {
"disable": false
},
"client_headers": [
"Location"
],
"request_headers": [
"Authorization", "Content-Type", Content-Length
],
"request_method": "POST",
"ssl_verify": false,
"upstream_headers": [
"x-offcn-gateway-id",
],
"uri": "http://127.0.0.1:9080/checkAuth"
}
```
I timed out using the Postman request interface。 When I removed the Content
Type from request_headers, it did not time out but reported an error: {"code":
400, "reason": "CODEC", "message": "unregister Content Type:", "metadata": {}}
### 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]