Show More
@@ -53,18 +53,18 b' class ZMQStreamHandler(websocket.WebSocketHandler):' | |||||
53 |
|
53 | |||
54 | # Check to see that origin matches host directly, including ports |
|
54 | # Check to see that origin matches host directly, including ports | |
55 | if origin != host: |
|
55 | if origin != host: | |
56 |
self.log. |
|
56 | self.log.warn("Cross Origin WebSocket Attempt.") | |
57 | raise web.HTTPError(404) |
|
57 | raise web.HTTPError(404) | |
58 |
|
58 | |||
59 |
|
59 | |||
60 |
def _execute(self |
|
60 | def _execute(self, *args, **kwargs): | |
61 | """Wrap all calls to make sure origin gets checked.""" |
|
61 | """Wrap all calls to make sure origin gets checked.""" | |
62 |
|
62 | |||
63 | # Check to see that origin matches host directly, including ports |
|
63 | # Check to see that origin matches host directly, including ports | |
64 | self.check_origin() |
|
64 | self.check_origin() | |
65 |
|
65 | |||
66 | # Pass on the rest of the handling by the WebSocketHandler |
|
66 | # Pass on the rest of the handling by the WebSocketHandler | |
67 |
super(ZMQStreamHandler, self)._execute( |
|
67 | super(ZMQStreamHandler, self)._execute(*args, **kwargs) | |
68 |
|
68 | |||
69 | def clear_cookie(self, *args, **kwargs): |
|
69 | def clear_cookie(self, *args, **kwargs): | |
70 | """meaningless for websockets""" |
|
70 | """meaningless for websockets""" |
General Comments 0
You need to be logged in to leave comments.
Login now