symfony - Symfony2 plugin for links CSRF protection -


is there plugin works way? i've found knpradbundle, got working project , adjusting new framework long , unnessesary. knows such plugin?

in knpradbundle it's function: https://github.com/knplabs/knpradbundle/wiki/csrf-protected-links

ps. i'm using symfony 2.2

i had exact same problem , found this pull request solves it.

using csrf_token('your_intention') function can generate csrf token in twig template. later can check token using form.csrf_provider service described in pull request.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -