From 4bb58fb449a305dd2121c2d9fe286b98dab7c55e Mon Sep 17 00:00:00 2001 From: Ivan Date: Thu, 15 Apr 2021 19:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E9=85=8D=E7=BD=AECORS=5FALLOWED=5FORIGINS=20https://g?= =?UTF-8?q?ithub.com/miguelgrinberg/python-engineio/issues/128?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- micro_msg_bot/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micro_msg_bot/server.py b/micro_msg_bot/server.py index 13902ce..51cd490 100755 --- a/micro_msg_bot/server.py +++ b/micro_msg_bot/server.py @@ -10,7 +10,7 @@ app = Flask(__name__) app.secret_key = os.environ.get('KEY', 'YOUR_SECRET_KEY') -socketio = SocketIO(app) +socketio = SocketIO(app, cors_allowed_origins=os.environ.get('CORS_ALLOWED_ORIGINS', None)) @app.route('/')