Skip to content

Commit a8a1f19

Browse files
committed
SameSite cookie strict
1 parent 6c5834c commit a8a1f19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/darkMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function startObservingColorSchemeHtmlAttribute() {
106106
const setColorSchemeCookie = (isDark: boolean) => {
107107
const colorScheme: ColorScheme = isDark ? "dark" : "light";
108108

109-
let newCookie = `${data_fr_theme}=${colorScheme};path=/;max-age=31536000`;
109+
let newCookie = `${data_fr_theme}=${colorScheme};path=/;max-age=31536000;SameSite=Strict`;
110110

111111
set_domain: {
112112
const { hostname } = window.location;

0 commit comments

Comments
 (0)