Yes, CSRF can also be used in the controller you need to write this code in the controller
# CSRF Protection my $v = $c->validation; return $c->render( template => 'not_found.html.ep', status => 403 ) if $v->csrf_protect->has_error('csrf_token');
And in the Template
%= form_for '/form_action_url => ( method => 'post', name => 'form_name' ) => begin <!-- Other Form Fields --> %= csrf_field % end
That's it. You are good to with.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yes, CSRF can also be used in the controller you need to write this code in the controller
And in the Template
That's it. You are good to with.