mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Merge pull request #1483 from bigchaindb/remove-useless-options-from-cors
Remove useless options from CORS
This commit is contained in:
commit
e5ca42a159
@ -61,20 +61,7 @@ def create_app(*, debug=False, threads=1):
|
|||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
CORS(app,
|
CORS(app)
|
||||||
allow_headers=(
|
|
||||||
'x-requested-with',
|
|
||||||
'content-type',
|
|
||||||
'accept',
|
|
||||||
'origin',
|
|
||||||
'authorization',
|
|
||||||
'x-csrftoken',
|
|
||||||
'withcredentials',
|
|
||||||
'cache-control',
|
|
||||||
'cookie',
|
|
||||||
'session-id',
|
|
||||||
),
|
|
||||||
supports_credentials=True)
|
|
||||||
|
|
||||||
app.debug = debug
|
app.debug = debug
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user