setCookieControls method

Future<void> setCookieControls(
  1. bool enableThirdPartyCookieRestriction,
  2. bool disableThirdPartyCookieMetadata,
  3. bool disableThirdPartyCookieHeuristics
)

Sets Controls for third-party cookie access Page reload is required before the new cookie bahavior will be observed enableThirdPartyCookieRestriction Whether 3pc restriction is enabled. disableThirdPartyCookieMetadata Whether 3pc grace period exception should be enabled; false by default. disableThirdPartyCookieHeuristics Whether 3pc heuristics exceptions should be enabled; false by default.

Implementation

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