Skip to content

Commit

Permalink
Merge pull request #15 from eQTL-Catalogue/add_cors
Browse files Browse the repository at this point in the history
add cors
  • Loading branch information
jdhayhurst authored Sep 11, 2020
2 parents 0b3376d + 55ef348 commit 0987b89
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 0987b89

Please sign in to comment.