Add headers params to environment

Hey @caudurieau

Is this what you’re trying to do?

Using the pm.request.headers.add({key: 'header_name', value: 'header_value' }) function in the Pre-Request Script at the Collection or Folder level, you would be able to programmatically set a header in one place that would be applied to multiple requests.

3 Likes