métase su tracking en el cohorto

1.5
Rodolfo Berrios 2021-10-18 15:58:14 -03:00
parent 52760d0b1b
commit 745b54a40e
No known key found for this signature in database
GPG Key ID: D3AAC2481DBDD9FE
1 changed files with 1 additions and 0 deletions

View File

@ -148,6 +148,7 @@ if ($isGt3160) {
try {
if (!isset($hook_before)) {
$hook_before = function ($handler) {
header("Permissions-Policy: interest-cohort=()");
header("Content-Security-Policy: frame-ancestors 'none'");
$failed_access_requests = Requestlog::getCounts(['login', 'signup'], 'fail');
if (is_max_invalid_request($failed_access_requests['day'])) {