From 15ae366034a480a59f81ef0885386d03eca56ab0 Mon Sep 17 00:00:00 2001 From: samuel dudley Date: Sun, 1 Oct 2017 23:51:04 +1030 Subject: [PATCH] remove origin check of websocket (for now) https://stackoverflow.com/questions/24851207/tornado-403-get-warning-when-opening-websocket/25071488#25071488 --- app/cesium_web_server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/cesium_web_server.py b/app/cesium_web_server.py index 232f5ea..129802b 100644 --- a/app/cesium_web_server.py +++ b/app/cesium_web_server.py @@ -40,6 +40,9 @@ def post(self): class DefaultWebSocket(tornado.websocket.WebSocketHandler): def initialize(self, callback): self.callback = callback + + def check_origin(self, origin): + return True def open(self): if APP_DEBUG: