Fix session cookie: disable Secure flag for HTTP deployment
Some checks failed
Deploy to NAS / deploy (push) Failing after 2m12s
Some checks failed
Deploy to NAS / deploy (push) Failing after 2m12s
Secure: true requires HTTPS — cookie was not sent back on HTTP requests, breaking the session after login. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -106,7 +106,7 @@ func (ui *WebUI) HandlePostLogin(w http.ResponseWriter, r *http.Request) {
|
|||||||
Value: sess.SessionID,
|
Value: sess.SessionID,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Secure: true,
|
Secure: false,
|
||||||
SameSite: http.SameSiteLaxMode,
|
SameSite: http.SameSiteLaxMode,
|
||||||
Expires: sess.ExpiresAt,
|
Expires: sess.ExpiresAt,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user