c47242aa3a
The web UI is multi-instance and can connect to the backend at a different origin (the direct :8000 port, a LAN IP, 127.0.0.1 vs localhost), which the browser blocks without CORS headers. Adds CORSMiddleware driven by a new cors_allow_origins setting (default "*", safe here: bearer-token auth with allow_credentials=False). Accepts a comma-separated string in .env. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>