How to checkToken or CSRF by DELETE or PUT Method ?

I had a problem to check CSRF using PUT and DELETE Method. I have to change all to POST Method.

when we check phalcon security =>

Token is check only in POST.

Is there a solution to use it with PUT and DELETE ?

Well, send post data with put/delete method. You can do it with them too.


Can you give me an example ?


Not for the same reasons, but I chose to generate CSRF token with my custom way.