extend/cowboy — Issue #76: WebSocket improvements: Origin header is optional
Author: majek
Created: 2011-10-21 15:25:25+00:00
State: open

From: http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17

> Additionally, if the client is a web browser, it supplies /origin/.

Later:

> 7. Optionally, an "Origin" header field. This header field is sent
> by all browser clients. A connection attempt lacking this
> header field SHOULD NOT be interpreted as coming from a browser
> client.

As far as I remember Cowboy websocket machinery requires Origin header.