Tyk v2.2 Documentation Components

  1. Home
  2. Tyk v2.2 Documentation Components
  3. Request 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:

GLobal version settings drawer