The loader remains stuck on the screen, the user can’t log in or 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 log in, register, forget password, and change password to increase security.
A “nonce” is a token that can only be used once and is often used to prevent unauthorized 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 the LiteSpeed Cache admin page and click on the 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;
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.