From 63da182147fdc482ae6d9db60b93d777d5124b3e Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 22 Mar 2021 11:41:37 -0400 Subject: [PATCH] feat: set theme cookies to be sameSite strict Since they are only used in a first party basis --- resources/skins.citizen.scripts.theme/theme-switcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/skins.citizen.scripts.theme/theme-switcher.js b/resources/skins.citizen.scripts.theme/theme-switcher.js index a291b8aa..ddac6783 100644 --- a/resources/skins.citizen.scripts.theme/theme-switcher.js +++ b/resources/skins.citizen.scripts.theme/theme-switcher.js @@ -11,7 +11,7 @@ setCookieChangeTheme = function ( themeName ) { try { - window.mw.cookie.set( 'skin-citizen-theme', themeName ); + window.mw.cookie.set( 'skin-citizen-theme', themeName, { sameSite: 'Strict' } ); } catch ( e ) { }