corsified server
This commit is contained in:
@ -1,5 +1,12 @@
|
|||||||
import connexion
|
import connexion
|
||||||
|
from flask_cors import CORS
|
||||||
|
|
||||||
|
# instantiate the webservice
|
||||||
app = connexion.App(__name__)
|
app = connexion.App(__name__)
|
||||||
app.add_api('my_api.yaml')
|
app.add_api('my_api.yaml')
|
||||||
|
|
||||||
|
# CORSify it - otherwise Angular won't accept it
|
||||||
|
CORS(app.app)
|
||||||
|
|
||||||
|
# provide the webservice application to uwsgi
|
||||||
application = app.app
|
application = app.app
|
||||||
|
Reference in New Issue
Block a user