feat: set theme cookies to be sameSite strict

Since they are only used in a first party basis
This commit is contained in:
alistair3149 2021-03-22 11:41:37 -04:00
parent 265333633c
commit 63da182147
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -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 ) {
}