← Back to Security domain

Security.setOverrideCertificateErrors

Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with `handleCertificateError` commands.

Domain: Security deprecated

Parameters

NameTypeDescription
overridebooleanIf true, certificate errors will be overridden.

Example Request

{
  "id": 1,
  "method": "Security.setOverrideCertificateErrors",
  "params": {
    "override": true
  }
}

Example Response

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

Usage in Node.js

const result = await send('Security.setOverrideCertificateErrors', {"override": true});
console.log(result);