frame masking

The WebSocket rule that every frame from client to server is scrambled with a random 4-byte key, while frames from server to client are not.

In more detail

Masking stops attackers from tricking proxies along the way into caching bytes that look like HTTP. It is not encryption, since the key is sent in the frame.

Related terms

Taught in

References