voilàvoilà

This commit is contained in:
Baptiste Peupier 2022-02-02 14:00:50 +01:00
parent 40cf1c239a
commit 4dc87f579c
3 changed files with 15 additions and 19 deletions

View file

@ -7,7 +7,7 @@ def create_app(flask_env='development'):
app = Flask(__name__, instance_relative_config=False, static_url_path='')
origin = app.config.get('ALLOW_ORIGIN')
if origin is None:
origin = ['http://10.1.1.10', 'http://10.1.5.10', 'http://10.1.1.10:4200', 'http://10.1.5.10:4200']
origin = ['http://10.1.1.10']
CORS(app, supports_credentials=True, origins=origin)
if flask_env == 'production':
app.config.from_object("config.ProductionConfig")