From 4ddc3b777525113cbc6531572d191f35323c07df Mon Sep 17 00:00:00 2001 From: Maxwell Pray Date: Sun, 21 Dec 2014 01:45:30 -0800 Subject: [PATCH] Fix 403 errors from tornado.access when handling new WebSocket connections. --- omnibus/factories.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/omnibus/factories.py b/omnibus/factories.py index 5ec6631..f332dd7 100644 --- a/omnibus/factories.py +++ b/omnibus/factories.py @@ -33,6 +33,9 @@ class GeneratedMessageConnection(MessageConnection, WebSocketHandler): authenticator_class = auth_class pubsub = pubsub_instance + def check_origin(self, origin): + return True + def open(self): self.on_open(None)