Slim CSRF Protection Route

#1

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.

#2

http://www.slimframework.com/docs/v3/features/csrf.html

#3

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

#4

True, I’ve had the same issue.

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