From 0607536b91b949495f1d9eb172bccb934dcb01ce Mon Sep 17 00:00:00 2001 From: redfast00 Date: Tue, 8 Oct 2019 03:46:04 +0200 Subject: [PATCH] Allow all origins --- chat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat.py b/chat.py index ae9b831..cedaa42 100644 --- a/chat.py +++ b/chat.py @@ -17,7 +17,8 @@ mpc.timeout = 0.2 app = Flask(__name__) -socketio = SocketIO(app) +# This is fine +socketio = SocketIO(app, cors_allowed_origins='*') messages = [] last_sent = defaultdict(lambda: datetime(1970,1,1))