Change Kong response headers via NGINX directive injection #10336
Unanswered
shawnchapla-8451
asked this question in
Help
Replies: 1 comment 3 replies
-
|
Hi @shawnchapla-8451 👋 I've captured this internally as a feature request, as I think it's a very understandable use case. In the meantime, what I would recommend is simply to disable these headers in your
If you are an enterprise user, some of this work can potentially be simplified by using the response-transformer-advanced plugin, but it's not strictly necessary. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We have a requirement to change the names of the headers Kong adds to the response; specifically to remove the reference to "Kong"; our security team sees this as a risk as it may provide insight to possible hackers.
I know we can manually update the nginx-kong.conf file to modify this behavior:
But when trying to do this the "Kong" way by inserting this code via Kong config setting, it gives an error because header_filter_by_lua_block is already in the out-of-the-box file.
Is there any way to accomplish this without editing nginx-kong.conf directly?
Beta Was this translation helpful? Give feedback.
All reactions