mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03: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()) {
|
if (!\SnappyMail\HTTP\SecFetch::isEntering() && !\SnappyMail\HTTP\SecFetch::isSameOrigin()) {
|
||||||
\MailSo\Base\Http::StatusHeader(403);
|
\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();
|
\MailSo\Base\Loader::Init();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue