-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use ajax with slim csrf #65
Comments
Hello,
#javascript
|
thnx 👍 good work |
Please be aware of the CSFR tokens for multiple forms\post per page (Ajax) #59 issue. |
Any idea how to use Persistant Tokens ??? I don't understand where and how to add a 6th parameter ? |
If you are using the example in the README: $container['csrf'] = function ($c) {
$csrf = new \Slim\Csrf\Guard();
$csrf-> setPersistentTokenMode(true);
return $csrf;
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alway when sublit data en post in ajax i get this response requests Failed csrf token
The text was updated successfully, but these errors were encountered: