Auth & Client-Side Security
high Severity
Free Check

WebSocket Encryption (WSS Enforcement)

Checks that all WebSocket connections negotiate secure wss:// protocols rather than unencrypted ws:// connections.

Test Your Website for WebSocket Encryption (WSS Enforcement)

Run this check along with 90+ automated tests across your domain.

Why It Matters

Unencrypted ws:// connections expose real-time chat messages, financial tickers, and session data to packet sniffing.

How We Check This

We analyze WebSocket constructor URLs in script files to verify exclusive use of wss://.

How to Fix & Implement

Copy-paste configuration blocks tailored for your web server or edge proxy.

nginx snippet
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";

Frequently Asked Questions

Does CSP restrict WebSocket connections?

Yes! The connect-src directive in CSP dictates which wss:// origins the browser may connect to.