Skip to content

Commit

Permalink
api: remove cors dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Aug 29, 2022
1 parent 926a935 commit 00b1ffd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions mpcontribs-api/mpcontribs/api/__init__.py
Expand Up @@ -184,12 +184,6 @@ def create_app():
app.config["TEMPLATE"]["schemes"] = ["http"] if app.debug else ["https"]
MPCONTRIBS_API_HOST = os.environ["MPCONTRIBS_API_HOST"]
logger.info("database: " + app.config["MPCONTRIBS_DB"])

if app.debug:
from flask_cors import CORS

CORS(app) # enable for development (allow localhost)

Compress(app)
Marshmallow(app)
MongoEngine(app)
Expand Down
1 change: 0 additions & 1 deletion mpcontribs-api/requirements.txt
Expand Up @@ -9,7 +9,6 @@ dnspython==2.2.1
filetype==1.1.0
flasgger @ git+https://github.com/flasgger/flasgger#egg=flasgger-0.9.5
flask-compress==1.12
flask-cors==3.0.10
flask-marshmallow==0.14.0
flask-mongorest-mpcontribs==2.0.1
#Flask-MonitoringDashboard @ git+https://github.com/flask-dashboard/Flask-MonitoringDashboard@development#egg=flask_monitoringdashboard-3.1.1
Expand Down

0 comments on commit 00b1ffd

Please sign in to comment.