This commit is contained in:
2021-09-11 18:50:54 +02:00
parent 39703dca22
commit 25d016c154

View File

@ -6,10 +6,13 @@ app = connexion.App(__name__)
app.add_api('openapi.yaml') app.add_api('openapi.yaml')
# CORSify it - otherwise Angular won't accept it # CORSify it - otherwise Angular won't accept it
CORS(app.app, origins=[ CORS(app.app,
"http://localhost:4200", origins=[
"https://base.hv.nober.de" "http://localhost:4200",
]) "https://base.hv.nober.de"
],
supports_credentials=True
)
# provide the webservice application to uwsgi # provide the webservice application to uwsgi
application = app.app application = app.app