Skip to main content
The Override Headers command (Command Type: 16) intercepts outgoing browser network requests and applies custom header values, allowing you to override or add specific headers for all subsequent requests.

Command Type

Command Type ID: 16

Parameters

ParameterTypeDescriptionRequired
overrideHeadersobjectKey-value pairs of headers to override or add (keys are header names, case-insensitive)Yes
timeoutnumberTimeout in millisecondsYes

Usage Examples

Set Authorization Header

{
  "command": "override-headers",
  "params": {
    "overrideHeaders": {
      "Authorization": "Bearer %{API_TOKEN}",
      "X-Custom-Header": "scraper-v2"
    },
    "timeout": 5000
  }
}

Override Referer and Accept

{
  "command": "override-headers",
  "params": {
    "overrideHeaders": {
      "Referer": "https://www.google.com",
      "Accept-Language": "en-US,en;q=0.9"
    },
    "timeout": 5000
  }
}