← Back to Network domain

Network.setExtraHTTPHeaders

Specifies whether to always send extra HTTP headers with the requests from this page.

Domain: Network stable

Parameters

NameTypeDescription
headersHeadersMap with extra HTTP headers.

Example Request

{
  "id": 1,
  "method": "Network.setExtraHTTPHeaders",
  "params": {
    "headers": "headers-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Network.setExtraHTTPHeaders', {"headers": "headers-value"});
console.log(result);