mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-07 00:41:55 +00:00
SameSite=Strict cookies are not sent with WebSocket upgrade requests on Chromium-based browsers (Brave confirmed), causing the CSRF cookie check at connect time to fail with 'csrf cookie mismatch'. This breaks the state_sync namespace, preventing the UI from loading chats. Change SameSite from Strict to Lax for both the Flask session cookie and the JavaScript-set CSRF token cookie. Lax still prevents cross-site POST CSRF while allowing same-origin WebSocket upgrades to include cookies. Fixes #1237 |
||
|---|---|---|
| .. | ||
| components | ||
| css | ||
| js | ||
| public | ||
| vendor | ||
| index.css | ||
| index.html | ||
| index.js | ||
| login.css | ||
| login.html | ||