added secure cookies settings
Some checks failed
Run Integration Tests / test (push) Failing after 40s

This commit is contained in:
partisan 2025-01-06 18:52:43 +01:00
parent 3d893ad94d
commit 0851e9e9f2

View file

@ -72,8 +72,9 @@ func saveUserSettings(w http.ResponseWriter, settings UserSettings) {
Value: cd.GetValue(settings),
Path: "/",
Expires: expiration,
Secure: true,
SameSite: http.SameSiteStrictMode,
Secure: true, // Ensure HTTPS is required
HttpOnly: true,
SameSite: http.SameSiteStrictMode, // Restrict cross-site usage
})
}