Changed: Origin Port

This commit is contained in:
Yûki VACHOT 2022-01-31 16:17:47 +01:00
parent 7a787ec562
commit 676f564656

View file

@ -6,7 +6,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://127.0.0.1:5000', 'http://localhost:5000']
origin = ['http://127.0.0.1:4200', 'http://localhost:4200']
CORS(app, supports_credentials=True, origins=origin)
if flask_env == 'production':
app.config.from_object("config.ProductionConfig")