Google News
logo
Flask - Interview Questions
How to disable csrf for a view with flask-wft for a restapi?
When you create the form, you can disable the CSRF for a view with flask-wtf for a restapi by using the following statement.
form = myForm(request.form, csrf_enabled=False)

 

Advertisement