diff --git a/internal/glance/theme.go b/internal/glance/theme.go index f99efd4..a3e26d4 100644 --- a/internal/glance/theme.go +++ b/internal/glance/theme.go @@ -25,9 +25,10 @@ func (a *application) handleThemeChangeRequest(w http.ResponseWriter, r *http.Re } http.SetCookie(w, &http.Cookie{ - Name: "theme", - Value: themeKey, - Path: a.Config.Server.BaseURL + "/", + Name: "theme", + Value: themeKey, + Path: a.Config.Server.BaseURL + "/", + SameSite: http.SameSiteLaxMode, }) w.Header().Set("Content-Type", "text/css")