We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c5834c commit a8a1f19Copy full SHA for a8a1f19
src/lib/darkMode.ts
@@ -106,7 +106,7 @@ export function startObservingColorSchemeHtmlAttribute() {
106
const setColorSchemeCookie = (isDark: boolean) => {
107
const colorScheme: ColorScheme = isDark ? "dark" : "light";
108
109
- let newCookie = `${data_fr_theme}=${colorScheme};path=/;max-age=31536000`;
+ let newCookie = `${data_fr_theme}=${colorScheme};path=/;max-age=31536000;SameSite=Strict`;
110
111
set_domain: {
112
const { hostname } = window.location;
0 commit comments