Use "allow_headers" keyword to initialize CORS

Fix #1478
This commit is contained in:
vrde 2017-05-18 11:36:24 +02:00 committed by Sylvain Bellemare
parent 97268a577b
commit 78e3f08728
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ def create_app(*, debug=False, threads=4):
app = Flask(__name__)
CORS(app,
headers=(
allow_headers=(
'x-requested-with',
'content-type',
'accept',

View File

@ -71,7 +71,7 @@ install_requires = [
'python-rapidjson==0.0.11',
'logstats~=0.2.1',
'flask>=0.10.1',
'flask-cors~=2.1.2',
'flask-cors~=3.0.0',
'flask-restful~=0.3.0',
'requests~=2.9',
'gunicorn~=19.0',