Basic authentication issue
-
I am new to WP so I would appreciate if someone can help.
I installed and activated both json-rest-api and Basic-Auth plugins.
I was able to get response when I did the following:
curl -i https://mywordresssite.com/wp-json/
However, when I tried to delete a post by doing the following, I was not able to do it. I am sure my user name and password are correct.
curl -X DELETE –user admin:password https://mywordpresssite.com/wp-json/posts/67
Response I received:
[{“code”:”json_user_cannot_delete_post”,”message”:”Sorry, you are not allowed to delete this post.”}]Can someone tell me what I did wrong?
- The topic ‘Basic authentication issue’ is closed to new replies.