hiroakis/tornado-websocket-example — pull request #2 by allencharp (2014-11-26 13:34:45+00:00)
Title: override a def based on tornado 4.0 release

override a def based on tornado 4.0 release:

Document: http://www.tornadoweb.org/en/stable/releases/v4.0.0.html

WebSocket connections from other origin sites are now rejected by default. To accept cross-origin websocket connections, override the new method WebSocketHandler.check_origin.

We'd better to override the check_origin, and return Ture in the scenario of cross-origin