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

nonce expired error #519

Open
bonny opened this issue Jan 15, 2025 · 1 comment
Open

nonce expired error #519

bonny opened this issue Jan 15, 2025 · 1 comment
Assignees

Comments

@bonny
Copy link
Owner

bonny commented Jan 15, 2025

Reported here and I have had the problem too:

To overcome the nonce expired errors this may be a solution:

https://developer.wordpress.org/news/2023/08/understand-and-use-wordpress-nonces-properly/#using-nonce-in-the-frontend-application

An easy and quick solution would be to detect the error and just write a message: "Reload browser" with a reload link.

@1ucay
Copy link

1ucay commented Feb 10, 2025

Nasty fix would be auto reload page with nonce lifetime :)

printf( '<meta http-equiv="refresh" content="%d">', esc_attr( (string) 1800 ) );

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

No branches or pull requests

2 participants