Tyk v2.2 Documentation Components

HomeTyk v2.2 Documentation ComponentsRequest Headers: Global Edits

Request Headers: Global Edits

Injecting and Removing headers globally

In some cases you may wish to add a secure header to all outbound requests (e.g. to verify that traffic is coming from the gateway), to do so, add this to your version block in your API Definition:

"version_data": {
    "versions": {
      "Default": {
        "global_headers": {
            "x-header-name": "x-header-value"
        "global_headers_remove": [

Using the global_headers_remove field it is possible to remove headers from all inbound requests before they are passed to your service.

Adding Global Injections via the GUI

You can also achieve this with the GUI, in your Endpoint Designer, by selecting the “Global Version Settings” drawer:

enter image description here

Was this article helpful to you? Yes No