Commit 8e8595c4 authored by Michal Pavlík's avatar Michal Pavlík

enable CORS for * origins

parent 42e77c51
import connexion
from flask_sqlalchemy import SQLAlchemy
from errors import ProjectException
from flask_cors import CORS, cross_origin
cnx = connexion.App(__name__, specification_dir='./')
cors = CORS(cnx.app)
db = SQLAlchemy()
db.init_app(cnx.app)
......
......@@ -8,6 +8,7 @@ clickclick==1.2.2
connexion==2.6.0
cryptography==2.8
Flask==1.1.1
Flask-Cors==3.0.8
Flask-SQLAlchemy==2.4.1
idna==2.8
importlib-metadata==1.5.0
......@@ -15,11 +16,11 @@ inflection==0.3.1
itsdangerous==1.1.0
Jinja2==2.11.1
jsonschema==3.2.0
jwt==0.6.1
MarkupSafe==1.1.1
openapi-spec-validator==0.2.8
pkg-resources==0.0.0
pycparser==2.19
PyJWT==1.7.1
pyOpenSSL==19.1.0
pyrsistent==0.15.7
PyYAML==5.3
requests==2.22.0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment