Recently I have installed WP REST API on my site and it is working pretty well. But the problem is that the data is accessbile to the public over the open URLs which doesn’t reguire authentication. For example a get request to wp-json/wp/v2/posts lists all the post detail to the users.
Is there any way to authenticate the GET Requests to WordPress REST API? I don’t want this data is available to anonymous users. Even a basic authentication should work for me!
Read more here: Authenticate WP REST API GET Requests