mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Remove check for deprecated FLoC opt-out
This commit is contained in:
parent
c7f7941de2
commit
45d325755f
@ -448,38 +448,6 @@ define([
|
||||
});
|
||||
}
|
||||
|
||||
assert(function (cb, msg) {
|
||||
setWarningClass(msg);
|
||||
|
||||
var printMessage = function (value) {
|
||||
msg.appendChild(h('span', [
|
||||
"This instance hasn't opted out of participation in Google's ",
|
||||
code('FLoC'),
|
||||
" targeted advertizing network. ",
|
||||
|
||||
"This can be done by setting a ",
|
||||
code('permissions-policy'),
|
||||
" HTTP header with a value of ",
|
||||
code('"interest-cohort=()"'),
|
||||
" in the configuration of its reverse proxy instead of the current value (",
|
||||
code(value),
|
||||
"). See the provided NGINX configuration file for an example. ",
|
||||
|
||||
h('p', [
|
||||
link("https://www.eff.org/deeplinks/2021/04/am-i-floced-launch", 'Learn more'),
|
||||
]),
|
||||
]));
|
||||
};
|
||||
|
||||
Tools.common_xhr('/', function (xhr) {
|
||||
var header = xhr.getResponseHeader('permissions-policy') || '';
|
||||
var rules = header.split(',');
|
||||
if (rules.includes('interest-cohort=()')) { return void cb(true); }
|
||||
printMessage(JSON.stringify(header));
|
||||
cb(header);
|
||||
});
|
||||
});
|
||||
|
||||
assert(function (cb, msg) {
|
||||
msg.appendChild(h('span', [
|
||||
code('/api/broadcast'),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user