Request Termination Policy

Trigger policy on header

Block requests if a specific header exists in the request. You can also combine config.trigger with the config.echo debugging parameter to avoid disturbing real traffic while debugging.

Environment variables

  • X_MY_HEADER: The name of the header that triggers the block.

Set up the policy

Attach the policy

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!