I have a server (server 1) which send requests to another server (server 2) where WordPress is installed and I am using their (server 2) WP REST API.
The problem is that I can't create/send wp-nonce
from server 1 to server 2, and I am getting the following response:
{
"code": "rest_not_logged_in",
"message": "You are not currently logged in.",
"data": {
"status": 401
}
}
I know that is not easy to disable nonce for REST API, but what is the proper way to send requests from another server to the WP REST API ?
rest-api-oauth1
(which is free) and on the server 1 - NodeJS -Request
library withOAuth 1.0a
library. I think, it works.