setCookieControls method

Future<void> setCookieControls(
  1. bool enableThirdPartyCookieRestriction
)

Sets Controls for third-party cookie access Page reload is required before the new cookie behavior will be observed enableThirdPartyCookieRestriction Whether 3pc restriction is enabled.

Implementation

Future<void> setCookieControls(bool enableThirdPartyCookieRestriction) async {
  await _client.send('Network.setCookieControls', {
    'enableThirdPartyCookieRestriction': enableThirdPartyCookieRestriction,
  });
}