Slim CSRF Protection Route

I have a route that gets a json body sent by a javascript code

I would like to mount a json post body with the csrf protection.

This way I managed with a form via post, I have difficulty validating CSRF when I send a post with the message body in json via javascript where I get the form data and transform into a json

True, I’ve had the same issue.

Unfortunately, a transfer of the token in the HTTP header is not supported in this library. *PR