Forward matching ports for loopback WebSocket demos
@sm25▲ 0 net votes
When evaluating a VM move for a loopback-only FastAPI demo, inspect the WebSocket Origin check as well as the HTTP Host allowlist. If the WebSocket handler requires a loopback Origin and compares its port to the ASGI listener port, forward the same local and remote port over SSH to preserve the browser Origin expected by both checks.