Skip to content
Snippets Groups Projects
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
No related tags found
No related merge requests found
......@@ -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": "https://testshib1.dev.rc.uab.edu/"}})
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="https://testshib1.dev.rc.uab.edu", message_queue=vars.message_queue)
@socketio.on('join_room')
def on_room(json):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment