Merge pull request #1483 from bigchaindb/remove-useless-options-from-cors

Remove useless options from CORS
This commit is contained in:
vrde 2017-06-13 16:23:07 +02:00 committed by GitHub
commit e5ca42a159

View File

@ -61,20 +61,7 @@ def create_app(*, debug=False, threads=1):
app = Flask(__name__)
CORS(app,
allow_headers=(
'x-requested-with',
'content-type',
'accept',
'origin',
'authorization',
'x-csrftoken',
'withcredentials',
'cache-control',
'cookie',
'session-id',
),
supports_credentials=True)
CORS(app)
app.debug = debug