4 ms·
Add a simple header to block FLoC on your website (fortunately): `permissions-policy: interest-cohort=()` It's only deployed on a test set of Chrome browsers
by jedwhite 6y ago
Add a simple header to block FLoC on your website (fortunately):
`permissions-policy: interest-cohort=()`
It's only deployed on a test set of Chrome browsers so far, and it does create a warning message on browsers that don't support it. [1]
[1] https://stackoverflow.com/questions/66997942/error-with-permissions-policy-header-when-using-chromedriver-to-a-headless-br https://stackoverflow.com/questions/66997942/error-with-perm...
Edit to note support for blocking this!
- lstamour 6y agoThat said, according to that StackOverflow page, the error only appears in DevTools. That's not as bad as it sounded at first. I was worried it would be an IE-style alert on page load, for example, or a visible bar across the top of the page. It's not, it's just spam in the DevTools console.
- jedwhite 6y agoThat's correct. I posted that answer on StackOverflow, and as far as I can tell from testing so far, it is just a warning in the DevTools console as noted on the StackOverflow answer, and there shouldn't be any other negative impact :)
- deleted 6y ago[deleted]
- aledalgrande 6y agoThat works until it breaks or Google deprecates it and then ooops, you're included in FLoC too! :/
- qweerty 6y agoJust block Chrome users, nothing of value lost.
- pbhjpbhj 6y agoIsn't this the sort of thing .well-known is for? Presumably Google are doing it this way because less people can create headers than can make a text file.