mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
When enabled, all /_web/* routes require Bearer token authentication, same as /api/v1/*. This hardens security for server/headless/public deployments where the same-origin assumption doesn't hold. - Add `require_auth` field to config schema (default: false) - Add `setRequireAuth()` to auth hook, conditionally enforce auth on /_web/* - Support `--require-auth` in both `chatlab start` and `--daemon` mode - Read from config.api.require_auth or CLI flag override Co-authored-by: Cursor <cursoragent@cursor.com>