Improve cookie security

This commit is contained in:
Zed
2019-08-15 18:25:47 +02:00
parent 7dfbc16f4c
commit 11887b793a
3 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ routes:
post "/saveprefs":
var prefs = getCookiePrefs(request)
genUpdatePrefs()
setCookie("preferences", $prefs.id, daysForward(360))
setCookie("preferences", $prefs.id, daysForward(360), httpOnly=true, secure=true)
redirect("/settings")
get "/settings":