← Back to Network domain

Network.setCookieControls

Sets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed

Domain: Network experimental

Parameters

NameTypeDescription
enableThirdPartyCookieRestrictionbooleanWhether 3pc restriction is enabled.

Example Request

{
  "id": 1,
  "method": "Network.setCookieControls",
  "params": {
    "enableThirdPartyCookieRestriction": true
  }
}

Example Response

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

Usage in Node.js

const result = await send('Network.setCookieControls', {"enableThirdPartyCookieRestriction": true});
console.log(result);