luci-base: add another magic security attribute to the sysauth cookie
Fixes: #3585 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
b8f65c340c
commit
885c97da53
@ -806,7 +806,7 @@ function dispatch(request)
|
||||
return tpl.render("sysauth", { duser = "root", fuser = user })
|
||||
end
|
||||
|
||||
http.header("Set-Cookie", 'sysauth=%s; path=%s; HttpOnly%s' %{
|
||||
http.header("Set-Cookie", 'sysauth=%s; path=%s; SameSite=Strict; HttpOnly%s' %{
|
||||
sid, build_url(), http.getenv("HTTPS") == "on" and "; secure" or ""
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user