From 9553454d183aeffa2e20babfc6a0da8fa3272aa2 Mon Sep 17 00:00:00 2001 From: Sorrel Bri Date: Sun, 13 Oct 2019 21:55:51 -0700 Subject: [PATCH] reconfig env variable for socketio cors --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index bc61392..7268ea3 100644 --- a/app.py +++ b/app.py @@ -18,7 +18,7 @@ app.config.from_object(os.getenv('CONFIGURATION_OBJECT')) # ! Environment Variable # TODO export ALLOWED_ORIGIN= whatever the react server is # TODO cors_allowed_origins=os.getenv('ALLOWED_ORIGIN') -socketio = SocketIO(app, cors_allowed_origins=['http://localhost:3000', 'http://localhost:3001']) +socketio = SocketIO(app, cors_allowed_origins=os.getenv('ALLOWED_ORIGIN')) def create_app(): CORS(app, resources={