Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
no frames
  • Loading branch information
rodber committed Oct 18, 2021
1 parent 1325324 commit 52760d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/web.php
Expand Up @@ -148,6 +148,7 @@
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);
Expand Down

0 comments on commit 52760d0

Please sign in to comment.