Question 360
A real-time support application protects its initial login page but accepts WebSocket upgrades without checking origin and authorization. Which security design or corrective architecture step best addresses this requirement?
Explanation
Correct Answer
Persistent application connections require continuing authorization, not just one web-page login. Unauthorized origins or users cannot establish protected streams or subscribe to other customers' events.
Incorrect Answers
API authorization must validate ownership of each requested object independent of authentication state. Enforce authenticated session and origin validation at the WebSocket upgrade and per-message authorization.
Flow metadata plus identity and behavior is needed to detect misuse of permitted service channels. Persistent application connections require continuing authorization, not just one web-page login.
Server-only TLS protects channel identity but does not automatically authenticate API clients. Unauthorized origins or users cannot establish protected streams or subscribe to other customers' events.