From 25d016c15434fc4c5295284de848f62fd00c6aab Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Sat, 11 Sep 2021 18:50:54 +0200 Subject: [PATCH] cors --- api/server.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/api/server.py b/api/server.py index 5b619d6..a72e1fa 100644 --- a/api/server.py +++ b/api/server.py @@ -6,10 +6,13 @@ app = connexion.App(__name__) app.add_api('openapi.yaml') # CORSify it - otherwise Angular won't accept it -CORS(app.app, origins=[ - "http://localhost:4200", - "https://base.hv.nober.de" -]) +CORS(app.app, + origins=[ + "http://localhost:4200", + "https://base.hv.nober.de" + ], + supports_credentials=True +) # provide the webservice application to uwsgi application = app.app