Skip to content
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

Wordpress Nonce Issue #161

Open
regiside opened this issue Jan 8, 2019 · 1 comment
Open

Wordpress Nonce Issue #161

regiside opened this issue Jan 8, 2019 · 1 comment

Comments

@regiside
Copy link

regiside commented Jan 8, 2019

Hey, I'm running into an issue using Wordpress with the plugin Caldera Forms. I use sisyphus to allow users to come back to fill out forms later in case they couldn't finish it the first time. The issue is, it seems to be persisting the nonce from the original session which blocks submission unless you clear all the data. Any ideas as to how I could avoid this issue. Not sure if it's specific to Caldera forms setup or if it's a wordpress issue. Thanks!

  • Reggie
@designbureau
Copy link

You just need to exclude the nonce field using the excludeFields method. eg.

form.sisyphus({
  excludeFields: $('[name="my_nonce_fied"],[name="_wp_http_referer"]'),
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants