Home > Software engineering >  Set HTTP header to all requests on Postman by default
Set HTTP header to all requests on Postman by default

Time:01-04

How to configure Postman to send Content-Type: application/json header on every request

CodePudding user response:

I found the following solution in a blogpost post which consists of adding a pre-request script to my collections/folder/request.

pm.request.headers.add({
    key: "Accept",
    value: "application/json"
});
  • Related