-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help request: Add a header if exist not overwrite #6710
Comments
Maybe, we can add a configuration to determine if headers needs to be rewritten |
@purekeeper Currently, you may support this by the serverless plugin: https://apisix.apache.org/docs/apisix/plugins/serverless. |
But both them have no support . Support to set header if nonexistent, they'll easier to reach intention than |
Another compromise is to use the IMO, don't override if it exists: this will cause to check the all headers, which is inefficient. |
suggest request add、remove、replace header plugin. |
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions. |
solved in #8336 |
Description
How can i add a header if not exist ,don't overwite if exist. Which plugin should used, proxy-rewite is not suitable,beacause it will overwrite if exist
Environment
apisix version
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: