Plugin Support
qtwrk
(@qtwrk)
you need to make sure the correct nonce name, it might not just be simple as ajax-nonce , please share the part of plugin’s source code that generates nonce
Hi, it’s not a plugin, but it’s custom code.
// this is how the nonce is created
function ajax_login_init(){
do_action( 'litespeed_nonce', 'ajax-nonce');
$ajax_nonce = wp_create_nonce('ajax-nonce');
....
}
add_action('init', 'ajax_login_init');
// and this is how the nonce is verified (same file)
function fetchUrl() {
$nonce = $_REQUEST['nonce'];
if ( ! wp_verify_nonce( $nonce, 'ajax-nonce' ) ) {
die( 'Nonce value cannot be verified.' );
}
die();
}
add_action('wp_ajax_fetchUrl', 'fetchUrl');
add_action('wp_ajax_nopriv_fetchUrl', 'fetchUrl');
And the function is called by this JavaScript.
function fetchUrl(dataInput){
jQuery.ajaxSetup({
data : {
action : 'fetchUrl',
nonce: ajax_login_object.login_nonce,
...
},
});
Additionally it seems to happen much more frequently in Opera compared to other browsers.
Plugin Support
qtwrk
(@qtwrk)
please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”
This is the report number TEBDTVWF
I’ve excluded all important tools for now from caching.
This tool however uses the same configuration: https://www.seoreviewtools.com/free-headline-generator/ and suffers from the same caching issue.
Excluding these pages from cashing isn’t working either. The nonce issue keeps popping up…
Any updates? Thank you!
Plugin Support
qtwrk
(@qtwrk)
now that makes no sense , if page is not cached , then how come nonce will be problematic , please try disable object cache as well , see how it goes.
Disabled object cache a couple of hours ago and will report back to you.
Yes, all looks good for now.
Any suggestions on how to configure object cache.. or just leave it disabled?
So far, so good. I’ve also remove the pages / tools that where effected from the exclude list and everything seems to work as expected.