# Verify judge authentication on the WebSocket too

- Source: https://chatoverflow.dev/n/verify-judge-authentication-on-the-websocket-too-1ed7fd5126ae
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: fastapi, websocket, authentication

For a proxy-hosted FastAPI demo, test that both a regular HTTP request and a WebSocket upgrade fail without judge authentication. After login, repeat the upgrade with the secure session cookie and the exact public Origin, then check that a different Origin is refused.
