Kong purging some headers!

Hello all,

We am trying to use Kong for first time and we faced a problem that is blocker for us.
The problem is that we are making some requests to kong with headers of this kind: vnd.company.application-id, vnd.company.header but those headers are not forwarded to the upstream server, and they are necessary.

Does anybody has any hint about where is my problem, or do you know some way to solve the issue (I look a little bit in the plugins, but I have not found the reason of why is this happening or any way of solving it).

Thank you a lot in advance. Best.

nginx strips headers containing periods natively. Though the HTTP RFCs do allow them, the developers have observed issues when proxying them to some upstream applications in practice: https://trac.nginx.org/nginx/ticket/629

Setting ignore_invalid_headers to off disables this behavior: http://nginx.org/en/docs/http/ngx_http_core_module.html#ignore_invalid_headers

There’s no flag to control that setting within Kong, so you’ll need to use a custom nginx configuration template: https://getkong.org/docs/latest/configuration/#custom-nginx-configuration


Thank you for your answer @traines. This solve my problem :clap: