From c9ebb5a7677c38c072d3d1f59929bffb5c08d437 Mon Sep 17 00:00:00 2001 From: djmaze Date: Fri, 1 Oct 2021 17:36:40 +0200 Subject: [PATCH] Bugfix: Fulguris incognito mode failed --- .../v/0.0.0/app/libraries/snappymail/http/secfetch.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/http/secfetch.php b/snappymail/v/0.0.0/app/libraries/snappymail/http/secfetch.php index 7be575984..406ffc2a9 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/http/secfetch.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/http/secfetch.php @@ -107,8 +107,11 @@ abstract class SecFetch public static function isSameOrigin() : bool { + return !isset($_SERVER['HTTP_SEC_FETCH_SITE']) - || 'same-origin' === $_SERVER['HTTP_SEC_FETCH_SITE']; + || 'same-origin' === $_SERVER['HTTP_SEC_FETCH_SITE'] + // Fulguris incognito: Dest = document, Mode = navigate, Site = none, User = true + || 'none' === $_SERVER['HTTP_SEC_FETCH_SITE']; } }