mirror of
https://github.com/zedeus/nitter.git
synced 2026-04-15 18:22:11 -04:00
Improve cookie security
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user