Closed Megic closed 6 years ago
code?
var token = (body && body._csrf)
|| (this.query && this.query._csrf)
|| (this.get('x-csrf-token'))
|| (this.get('x-xsrf-token'))
|| body
add || (body&&body.fields._csrf) to
var token = (body && body._csrf) || (body&&body.fields._csrf)//multipart/form-data form || (this.query && this.query._csrf) || (this.get('x-csrf-token')) || (this.get('x-xsrf-token')) || body
can you get the token from request body use your code?
@Megic you can add _csrf param in post url, not in post body
Closing due to inactivity.
it can't work in multipart/form-data form