luci-base: add another magic security attribute to the sysauth cookie
Fixes: #3585
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 885c97da53
)
This commit is contained in:
parent
3f5a67b62e
commit
5879390cd1
1 changed files with 1 additions and 1 deletions
|
@ -514,7 +514,7 @@ function dispatch(request)
|
|||
return
|
||||
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 ""
|
||||
})
|
||||
http.redirect(build_url(unpack(ctx.requestpath)))
|
||||
|
|
Loading…
Reference in a new issue