Commit d07eb5b9 by Sheng

Reject cross-origin traffic

parent fea58f76
...@@ -224,9 +224,6 @@ class WsockHandler(tornado.websocket.WebSocketHandler): ...@@ -224,9 +224,6 @@ class WsockHandler(tornado.websocket.WebSocketHandler):
self.worker_ref = None self.worker_ref = None
super(self.__class__, self).__init__(*args, **kwargs) super(self.__class__, self).__init__(*args, **kwargs)
def check_origin(self, origin):
return True
def get_addr(self): def get_addr(self):
ip = self.request.headers.get_list('X-Real-Ip') ip = self.request.headers.get_list('X-Real-Ip')
port = self.request.headers.get_list('X-Real-Port') port = self.request.headers.get_list('X-Real-Port')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment