Commit 6b40879d authored by Krish Moodbidri's avatar Krish Moodbidri
Browse files

Revert "replaced cors_allowed_origins value with avriable from vars"

This reverts commit d92ae68b
parent d92ae68b
......@@ -15,7 +15,7 @@ import json
def create_app(config_name):
app = Flask(__name__, static_folder='static') # initialization of the flask app
cors = CORS(app, resources={r"/*": {"origins": vars.cors_allowed_origins}})
cors = CORS(app, resources={r"/*": {"origins": ""}})
Bootstrap(app) # allowing app to use bootstrap
def get_authorized_user():
......@@ -14,7 +14,7 @@ monkey.patch_all(subprocess=True)
config_name = os.getenv('FLASK_CONFIG')
app = create_app(config_name)
app.config['SECRET_KEY'] = vars.key
socketio = SocketIO(app, cors_allowed_origins=vars.cors_allowed_origins, message_queue=vars.message_queue)
socketio = SocketIO(app, cors_allowed_origins="", message_queue=vars.message_queue)
def on_room(json):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment