middleware parsing json object with webix.

For CSRF Protection and AJAX Requests and sending forms with a formbuilder everything works fine cause _Token[fields] etc. will be added and my CSRF Protection works but by building my own json object and sendig it over an ajax request allways an error occurse with 400 (Bad Request) and "'_Token' was not found in request data."

SO is there a way to parsing an json object an add this '_Token to an specific json object?

Comments

  • You can use onBeforeAjax event

    Third argument of event handler is "params" - json object which will be sent to server side, you can alter it in any way before sending to the server-side.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion