mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-27 18:18:28 +08:00
This commit is contained in:
parent
019de7de87
commit
adb5619438
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,12 @@ if (\class_exists('RainLoop\Api'))
|
|||
{
|
||||
if (!\SnappyMail\HTTP\SecFetch::isEntering() && !\SnappyMail\HTTP\SecFetch::isSameOrigin()) {
|
||||
\MailSo\Base\Http::StatusHeader(403);
|
||||
exit('Disallowed Sec-Fetch-Site: ' . ($_SERVER['HTTP_SEC_FETCH_SITE'] ?? ''));
|
||||
exit("Disallowed Sec-Fetch
|
||||
Dest: " . ($_SERVER['HTTP_SEC_FETCH_DEST'] ?? '') . "
|
||||
Mode: " . ($_SERVER['HTTP_SEC_FETCH_MODE'] ?? '') . "
|
||||
Site: " . ($_SERVER['HTTP_SEC_FETCH_SITE'] ?? '') . "
|
||||
User: " . (\SnappyMail\HTTP\SecFetch::user() ? 'true' : 'false')
|
||||
);
|
||||
}
|
||||
|
||||
\MailSo\Base\Loader::Init();
|
||||
|
|
Loading…
Reference in a new issue