Skip to content

Commit

Permalink
Set wgCookieSameSite and wgUseSameSiteLegacyCookies (#5328)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
paladox and github-actions authored Oct 14, 2023
1 parent 61db10e commit ae4080e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions GlobalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
'GlobalBlocking',
'RemovePII',
] );

$wgCookieSameSite = 'None';
$wgUseSameSiteLegacyCookies = true;
}

if ( $wi->isExtensionActive( 'chameleon' ) ) {
Expand Down
4 changes: 2 additions & 2 deletions LocalWiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit ae4080e

Please sign in to comment.