Check CSRF after processing the oauth token.
This commit is contained in:
parent
26a57d0c21
commit
f39793b3ac
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ logger = logging.getLogger(__name__)
|
||||||
api_bp = Blueprint('api', __name__)
|
api_bp = Blueprint('api', __name__)
|
||||||
api = Api()
|
api = Api()
|
||||||
api.init_app(api_bp)
|
api.init_app(api_bp)
|
||||||
api.decorators = [process_oauth,
|
api.decorators = [csrf_protect,
|
||||||
csrf_protect,
|
process_oauth,
|
||||||
crossdomain(origin='*', headers=['Authorization', 'Content-Type'])]
|
crossdomain(origin='*', headers=['Authorization', 'Content-Type'])]
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue