You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gutenberg can find itself in an infinite loop of REST requests due to an invalid nonce if a user uses their site over https but at some point happens to load up the login screen over http. This happened to me in a local environment where I don't force https traffic but have a cert available. I inadvertently navigated to the http address, realized my mistake and re-navigated to the https address, and when I created a post in Gutenberg it was unusable.
Step-by-step reproduction instructions
Sign into wp-admin successfully at https address, e.g. https://wp.test/wp-admin/.
Load up the http:// variant of wp-admin, e.g. http://wp.test/wp-admin/. You will get the login screen but don't sign in.
Load up wp-admin again at the https address, e.g. https://wp.test/wp-admin/
Open browser console and go to network tab
Navigate to create a new post in GB, e.g. https://wp.test/wp-admin/post-new.php
Observe an infinite loop of 403 requests in the network tab of the browser console due to invalid nonces.
Screenshots, screen recording, code snippet
to-infinity-and-beyond.mp4
Environment info
WordPress 5.8.1 using Twenty Twenty-One theme, no plugins active
Chrome 95.0.4638.54
MacOS 11.6
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Description
Gutenberg can find itself in an infinite loop of REST requests due to an invalid nonce if a user uses their site over https but at some point happens to load up the login screen over http. This happened to me in a local environment where I don't force https traffic but have a cert available. I inadvertently navigated to the http address, realized my mistake and re-navigated to the https address, and when I created a post in Gutenberg it was unusable.
Step-by-step reproduction instructions
https://wp.test/wp-admin/.http://variant of wp-admin, e.g.http://wp.test/wp-admin/. You will get the login screen but don't sign in.https://wp.test/wp-admin/https://wp.test/wp-admin/post-new.phpScreenshots, screen recording, code snippet
to-infinity-and-beyond.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes