Skip to content

Commit

Permalink
add cors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdhayhurst committed Sep 11, 2020
1 parent 0b3376d commit 55ef348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dnspython==1.16.0
docutils==0.15.2
eventlet==0.25.1
Flask==1.1.1
Flask-Cors==3.0.9
greenlet==0.4.15
gunicorn==19.9.0
h5py==2.8.0
Expand Down
2 changes: 2 additions & 0 deletions sumstats/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
from logging import config
from flask import Flask, make_response, Response
from flask_cors import CORS
from sumstats.utils import register_logger
from sumstats.utils.properties_handler import properties
from sumstats.server.error_classes import *
Expand All @@ -16,6 +17,7 @@

app = Flask(__name__)
app.url_map.strict_slashes = False
cors = CORS(app)


@api.errorhandler(APIException)
Expand Down

0 comments on commit 55ef348

Please sign in to comment.