mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Improve cookie security
This commit is contained in:
parent
7dfbc16f4c
commit
11887b793a
3 changed files with 4 additions and 4 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue