Add checkup test about Google's Floc

pull/1/head
yflory 4 years ago
parent 85cb36ad97
commit 7a682397e2

@ -48,6 +48,7 @@ Default.httpHeaders = function () {
"X-XSS-Protection": "1; mode=block", "X-XSS-Protection": "1; mode=block",
"X-Content-Type-Options": "nosniff", "X-Content-Type-Options": "nosniff",
"Access-Control-Allow-Origin": "*", "Access-Control-Allow-Origin": "*",
"Permissions-policy":"interest-cohort=()"
}; };
}; };
Default.mainPages = function () { Default.mainPages = function () {

@ -365,6 +365,15 @@ define([
}); });
}); });
assert(function (cb, msg) {
msg.innerText = "Missing HTTP header required to disable Google's Floc.";
$.ajax('/?'+ (+new Date()), {
complete: function (xhr) {
cb(xhr.getResponseHeader('permissions-policy') === 'interest-cohort=()');
},
});
});
assert(function (cb, msg) { assert(function (cb, msg) {
msg = msg; msg = msg;
return void cb(true); return void cb(true);

Loading…
Cancel
Save