You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Nil session store: runServe now falls back to an in-memory SQLite DB
for session tracking when memory is disabled, preventing nil panics.
2. GetOrCreate hides errors: Added ErrSessionNotFound sentinel. The
session store's Get method now returns it for sql.ErrNoRows and
surfaces real DB errors. GetOrCreate only creates a new session on
ErrSessionNotFound, propagating other failures to the caller.
3. WS origin unrestricted: Replaced the permissive CheckOrigin with a
localhost-only check when no API key is configured, preventing
cross-site WebSocket hijacking of a local gateway. When an API key
is set, all origins are allowed since the hello frame authenticates.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments