rluders / wn-jwtauth-plugin

JWTAuth Plugin for WinterCMS
GNU General Public License v3.0
29 stars 28 forks source link

Registration Endpoint 422 Unprocessable Entity #12

Closed boxybird closed 5 years ago

boxybird commented 5 years ago

HTML is being return when there is a validation error. The JSON error is there as well, but the presents of the HTML creates a parsing issue. Any thoughts to what I can be doing wrong?

422

boxybird commented 5 years ago

Looks like the solution was to include {X-Requested-With: XMLHttpRequest} as a header.