Make theme cookie samesite lax

This commit is contained in:
Svilen Markov 2025-05-05 13:30:14 +01:00
parent b075607bac
commit bf97829814

View File

@ -28,6 +28,7 @@ func (a *application) handleThemeChangeRequest(w http.ResponseWriter, r *http.Re
Name: "theme",
Value: themeKey,
Path: a.Config.Server.BaseURL + "/",
SameSite: http.SameSiteLaxMode,
})
w.Header().Set("Content-Type", "text/css")