Infinitive loop on API req in Block editor after wordpress_logged_in cookie is removed #67431
Closed
3 of 6 tasks
Labels
REST API Interaction
Related to REST API
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Bug
An existing feature does not function as intended
Description
When you log into the editor and manually remove the wordpress_logged_in cookie, any attempt to save or perform actions in the editor will trigger an infinite loop of API requests, resulting in a 403 Forbidden response with rest_cookie_invalid_nonce.
Even after refreshing the page, these requests will persist, and the only way to stop them is to manually log out.
This infinite loop of requests can spike your CPU to 100%, rendering your site unresponsive.
All details can be found here on the video:
https://drive.google.com/file/d/1SpwEp_kg0okedNBe9yfHpAqMb-wQKdPi/view?usp=sharing
Step-by-step reproduction instructions
wordpress_logged_in
cookieScreenshots, screen recording, code snippet
Screen.Recording.2024-11-29.at.14.44.28.mp4
Environment info
Tested:
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: