Deactivated headers are still sent with requests

RafPOL
Wed, 03 Sep 2025 11:56:10 +0000
Help Hub

When a request header is deactivated (unchecked) in the Postman GUI, it is still sent with the outgoing request. Deactivated headers should not be included in the request at all.

Steps to Reproduce

1. Add any header to your request in Postman.

2. Deactivate (uncheck) the header in the Headers tab.

3. Add the following test script to your request:

JavaScript

pm.test("List all sent request headers", function () {
    let headers = pm.request.headers.toJSON();
    headers.forEach(function(header) {
        console.log(header.key + ": " + header.value);
    });
});

4. Send the request.

5. Open the Postman Console and observe that the deactivated header still appears in the list of sent headers.

Expected Behavior
Deactivated headers should not be sent with the request or appear in the list of actual request headers.

3 posts - 2 participants