← Back to Fetch domain

Fetch.enable

Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.

Domain: Fetch stable

Parameters

NameTypeDescription
patterns (optional)arrayIf specified, only requests matching any of these patterns will produce fetchRequested event and will be paused until clients response. If not set, all requests will be affected.
handleAuthRequests (optional)booleanIf true, authRequired events will be issued and requests will be paused expecting a call to continueWithAuth.

Example Request

{
  "id": 1,
  "method": "Fetch.enable"
}

Example Response

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

Usage in Node.js

const result = await send('Fetch.enable');
console.log(result);