feat(web): W-G14 anlian-mq acceptance and auth/session listen fixes
Add a GFM-first anlian rewrite under examples/anlian-mq to exercise Go libweb (lists, detail, gates, login, WS). Wire RBAC/login into listen, page query/order/detail ABIs, and stop issuing Max-Age=0 CSRF cookies so browser login sessions stick. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e20cf8b386
commit
ce195998c1
22 files changed
+1454
-20
No files matched your search
@@ -79,7 +79,9 @@ func resolveSession(r *http.Request) (sid, csrf string, setCookie *string) {
|
||||
}
|
||||
sid = session.NewID(0)
|
||||
tok, _ := session.CSRFFor(sid)
|
||||
c := session.SessionCookie(sid, 0, false)
|
||||
// Use configured session TTL (never Max-Age=0): browsers drop Max-Age=0
|
||||
// immediately, so CSRF cookies from GET /login would never stick.
|
||||
c := session.IssueCookie(sid)
|
||||
return sid, tok, &c
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user