Define route and environment response headers

Mockoon can handle response headers at both environment and route levels, learn how.

Get Mockoon latest version and start mocking!

Download

In Mockoon you can easily define response headers for each route but also at the environment level. Response headers defined on a route will override those defined on an environment.

Route level response headers

To add response headers like Content-Type to your route go to the Headers tab and fill the name and value fields:

Add route response header

Environment level response headers

You can also add response headers at the environment level. Headers defined on an environment will be overridden if they are redefined on a route. To define an environment response header head to environment settings and add headers at the bottom of the page:

Add environment response header

Join Mockoon's mailing list to receive latest updates