我试图通过发送使用Wordpress 4.8.2 REST API删除帖子 删除到http://localhost/wordpress/index.php/wp-json/wp/v2/posts/4之类的网址 我安装并激活了WP Basic Auth插件。 我发送'Authorization'header ='基本base64编码(用户名:密码)' 但是,作为API响应,我得到了
{
"code": "rest_cannot_delete",
"message": "Sorry, you are not allowed to delete this post.",
"data": {
"status": 401
}
}
您能否告知为何不删帖?感谢