no frames

1.5
Rodolfo Berrios 2021-10-18 15:57:28 -03:00
parent 1325324f8b
commit 52760d0b1b
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("Content-Security-Policy: frame-ancestors 'none'");
$failed_access_requests = Requestlog::getCounts(['login', 'signup'], 'fail');
if (is_max_invalid_request($failed_access_requests['day'])) {
G\set_status_header(403);