"Error with Permissions-Policy header", when using Chromedriver to a Headless Browser "Error with Permissions-Policy header", when using Chromedriver to a Headless Browser selenium selenium

"Error with Permissions-Policy header", when using Chromedriver to a Headless Browser


This is the new header used to block Google's new tracking technology called Federated Cohorts of Learning (FLoC).

About FLoC

The header is being used by DDG to block FLoC tracking.

DuckDuckGo Announces Plans to Block Google’s FLoC

You get the same warning in Chrome dev tools if you access any website that blocks FLoC.

To block Google's FLoC on your own website, add the following header:

permissions-policy: interest-cohort=()


If you just want to remove those warning messages then add

chrome_options.add_argument('--log-level=1')

More info here List of Chromium Command Line Switches

log-level: Sets the minimum log level.Valid values are from 0 to 3:     INFO = 0 (default)    WARNING = 1    LOG_ERROR = 2    LOG_FATAL = 3