Kong Functions (Post-Plugin)

Disable headers from being passed to upstream service

You can pass Lua code as a string to the Post-Function plugin.

In this example, the plugin runs in the access phase to disable the X-Forwarded-Host header so that it doesn’t get sent to the upstream service.

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!