How to disable FLoC on Netlify

FLoC is Googles next attempt at tracking people online. You can read more about it in this nice article by Adactio.

Both WordPress and Drupal are discussing if they should disable it by default.

In the meantime, if you’re a website owner, you have to opt your website out of the origin trial.

Do opt out of it on Netlify all you have to do is add some lines to your netlify.toml:

    for = "/*"
        Permissions-Policy = "interest-cohort=()"

This will add a header to your website that will tell Google Chrome that your website don't want to participate. It may not be necessary, but it's an easy fix.