Skip to main content
Skip table of contents

Add an HTTP Headers Plugin

This example adds an HTTP Headers Plugin to the echo-route on the echo-service. This plugin can add arbitrary headers to the outgoing request. 

Add the Plugin

  1. Click Services on the menu.
  2. Click the echo-service Service.
  3. Click the Routes tab.
  4. Click the echo-route Route.
  5. Click the Plugins tab.
  6. Click the Add action icon.
  7. Select the "HTTP Headers" plugin type.
  8. Enter the Plugin description, for example "Add my custom header".
  9. Click the Add action icon next to "Add HTTP Headers". 
  10. Enter "my-custom-header" in the Header name field.
  11. Enter "my-custom-value" in the header value field.
  12. Click SAVE.

Test the Configuration

  1. From the Console Dashboard, start the gateway or redeploy the gateway configuration.
  2. In your browser, enter the URL using the address of the gateway listener, for example http://nonstop-host:19091/echo. The response through the gateway should contain the custom header and value.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.