mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
When the panel sits behind a reverse proxy / tunnel, browsers and agents arrive from SERVERKIT_PUBLIC_URL. Without that origin in CORS_ORIGINS the engine.io WS handshake rejects it and every Socket.IO connection 400s with "not an accepted origin". Auto-append SERVERKIT_PUBLIC_URL (deduped, whitespace-stripped) so operators configure the public URL in one place. Also bumps Flask-SocketIO 5.4.1 -> 5.6.1. Recovered from a local stash. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>