From ae4080ec02cb06113600dc9fe3892648a540e05f Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 14 Oct 2023 13:40:53 +0100 Subject: [PATCH] Set wgCookieSameSite and wgUseSameSiteLegacyCookies (#5328) Fix "Universal sign-on may be broken in newer Google Chrome versions due to SameSite cookie policy" by setting wgCookieSameSite and wgUseSameSiteLegacyCookies. --------- Co-authored-by: github-actions --- GlobalSettings.php | 3 +++ LocalWiki.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/GlobalSettings.php b/GlobalSettings.php index d354365b1a..61b6a58694 100644 --- a/GlobalSettings.php +++ b/GlobalSettings.php @@ -11,6 +11,9 @@ 'GlobalBlocking', 'RemovePII', ] ); + + $wgCookieSameSite = 'None'; + $wgUseSameSiteLegacyCookies = true; } if ( $wi->isExtensionActive( 'chameleon' ) ) { diff --git a/LocalWiki.php b/LocalWiki.php index 9edb0d4c09..b507f22f9c 100644 --- a/LocalWiki.php +++ b/LocalWiki.php @@ -454,10 +454,10 @@ function onBeforePageDisplay( OutputPage $out ) { $wgDplSettings['allowUnlimitedResults'] = true; break; - case 'whentheycrywiki': + case 'whentheycrywiki': $wgGalleryOptions['imageWidth'] = 200; $wgGalleryOptions['imageHeight'] = 200; - + break; case 'wonderingstarswiki': $wgPivotFeatures = [