Add a WebSocket handshake rule, which lets you define the domains that can open a cross-origin WebSocket to the application or resource.
You can also define allowed WebSocket subprotocols and extensions, providing more fine-grained control over how the application behaves.