The loader remains stuck on the screen, user can’t log in ore register and the browser console returns error 403 on page admin-ajax.php
This can happen if you are using caching plugins. StranoWeb Ajax Login adds nonce to login, register, forgot password and change password to increase security.
A “nonce” is a token that can only be used once and are often used to prevent unauthorised people from submitting data on behalf of another person.
As the nonce is added as a hidden form element, it will also end up being cached by some caching plugins. This can cause some issues with nonce verification.
If you are using one of the following caching plugins:
- Go to LiteSpeed Cache admin page and click on Show Advanced Options tab:
- Click on tab “(9) ESI” and then click on Enable ESI ON to activate it:
- On the backend admin bar find the LiteSpeed Cache icon and click on “Purge LSCache”:
After the cache gets cleared, the HTML gets regenerated and references a correct nonce again. Hence, when your WordPress setup (theme, plugins) operates with nonces, the only way to keep them updated on cached pages is to set your Cache lifespan option in WP Rocket to a value below 12 hours; 10 hours would be a starting point, but you may have go down to 8 or even less.
Disable StranoWeb Ajax Login nonces
If none of the previous solutions work, the only way is to disable nonce verification.
Note: WordPress default login, register, forgot password forms don’t use nonce verification!
- Go to StranoWeb Ajax Login admin page on Advanced tab and click on Disable SWAL nonce;
The nonce hidden input fields will still appear on the forms but won’t be any verification on them;