mirror of
https://github.com/smittix/intercept.git
synced 2026-05-17 21:34:50 -07:00
The before_request require_login hook was returning a 302 redirect for WebSocket upgrade requests, which browsers report as "Invalid frame header". WebSocket requests don't always carry session cookies reliably. Allow /ws/ paths through the login check since the page that initiates these connections already requires authentication. Also keeps the prior fix: serialize WebSocket sends through a queue to avoid concurrent read/write on the non-thread-safe simple-websocket. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 KiB
31 KiB