Only authenticated users can access the REST API
-
Hi, my site require user authentication (login) before the customers can browse and purchase products. I installed the plugin (version 3.35.3) (running on WP 4.8.6) and when submitting a review, I got the following error:
500 – Internal Server Error
Error: Request failed with status code 401On the ‘Diagnostics’ page, it says:
“WP REST API: The plugin will not be able to receive reviews because REST API is disabled.” (however it’s enabled in WooCommerce).
When tested with “myexamplesite.com/?rest_route=/wp/json”, it gives
{“code”:”rest_unauthorized”,”message”:”Only authenticated users can access the REST API.”,”data”:{“status”:401}}.
It seems I need to authenticate a ‘cusrev.com’ user for the review to get updated into my site via REST API. How do I do this?
The topic ‘Only authenticated users can access the REST API’ is closed to new replies.