Hi
I’ve installed the miniOrange API Authentication plugin and set it to Basic Authentication.
I’m trying to post a new WordPress post but I get a 401. i.e.
https://mydomain.com/wp-json/wp/v2/posts/
POST verb
The Authorization header exists in the post.
Content-Type header is application/json
Body is –
{
“title”: “Test”,
“status”: “draft”,
“content”: “Some content”,
“slug”: “test-post”
}
I’ve added these 2 lines to the _httaccess file.
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* – [e=HTTP_AUTHORIZATION:%1]
Still no luck, any suggestions gratefully received.
Thanks