wp-background-processing icon indicating copy to clipboard operation
wp-background-processing copied to clipboard

After some file relocation, the nonce could not be verified anymore

Open rvencu opened this issue 5 years ago • 1 comments

I had the library working for a while then I decided to move files in a different folder structure. did composer remove, composer require and moved my files accordingly

After this, the function check_ajax_referer refused to validate the nonce.

rvencu avatar Dec 22 '20 00:12 rvencu

I think the problem is that I am initially calling an API endpoint, where I am authenticating with Basic authentication.

I can see that the WP_Async_Request class tries to pass the $_COOKIE object in an effort to preserve the user session but in my case there are no cookies so the session is not preserved. Thus the nonce is not available on the receiving end.

rvencu avatar Dec 22 '20 08:12 rvencu

Closing ancient issue. :smile: (but https://github.com/deliciousbrains/wp-background-processing#basicauth might help)

ianmjones avatar Apr 11 '23 18:04 ianmjones