def check_origin(self, origin):
"""
Accepts all cross-origin traffic
:param origin: is the value of the ``Origin`` HTTP header, the url responsible for initiating this request.
.. seealso:: `~WebSocketHandler.check_origin <http://www.tornadoweb.org/en/stable/_modules/tornado/websocket.html#WebSocketHandler.check_origin>`
"""
return True
评论列表
文章目录