Network.setCookieControlsSets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed
| Name | Type | Description |
|---|---|---|
enableThirdPartyCookieRestriction | boolean | Whether 3pc restriction is enabled. |
{
"id": 1,
"method": "Network.setCookieControls",
"params": {
"enableThirdPartyCookieRestriction": true
}
}
{
"id": 1,
"result": {}
}
const result = await send('Network.setCookieControls', {"enableThirdPartyCookieRestriction": true});
console.log(result);