Blog

µWebSockets: permessage-deflate, CORS-like origin checks on upgrade, and maximum payload limits

µWebSockets is extremely fast—still validate `Origin` before accepting connections from browsers.

1 min read
uwebsocketswebsocketcors

SSL

Integrate with OpenSSL or BoringSSL builds—certificate chains must match advertised hostnames for CORS docs.

ALPN negotiation must select HTTP/1.1 for WebSocket upgrade paths.

Clustering

Shared nothing workers need consistent origin logic—centralize allowlists via IPC or Redis.

Back to blog