diff --git a/app/__init__.py b/app/__init__.py index 7753b037d2ce7ebe36328a8061524473dd2c39c2..ba0051d2d6f74af9babea278785ff11ffbefe5f3 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -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(): diff --git a/run.py b/run.py index f69a20825a47ab2d526807240273a5737a878ac5..339a3ef6d7aa8997c7f4dd10d739ea54ea635b9c 100644 --- a/run.py +++ b/run.py @@ -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):