WP Rest Api / Ajax POST not working when not logged in
As stated in the documentation page you linked, It is important to keep in mind that this authentication method relies on WordPress cookies. As a result this method is only applicable when the REST API is used inside of WordPress and the current user is logged in. In addition, the current user must have the … Read more