mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-20 12:46:39 +00:00
Reject cross-origin traffic
This commit is contained in:
@@ -224,9 +224,6 @@ class WsockHandler(tornado.websocket.WebSocketHandler):
|
||||
self.worker_ref = None
|
||||
super(self.__class__, self).__init__(*args, **kwargs)
|
||||
|
||||
def check_origin(self, origin):
|
||||
return True
|
||||
|
||||
def get_addr(self):
|
||||
ip = self.request.headers.get_list('X-Real-Ip')
|
||||
port = self.request.headers.get_list('X-Real-Port')
|
||||
|
||||
Reference in New Issue
Block a user