You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
401 Unauthorized response when using this plugin #53
Whatever user you're authenticating as doesn't have edit permission on any posts. You might just want to change your request to context=view, or elsewhere – via a plugin or functions.php – you can give them the capability.
Activity
BrianHenryIE commentedon Feb 14, 2018
It looks like this plugin is working fine, i.e. the user is authenticated, but the user is not permitted to edit posts, i.e not authorised.
Take a look at the code that (I think) is returning that message:
https://github.com/WordPress/WordPress/blob/91464bce658541193a47886e0e5041c27f25851a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php#L125-L141
Whatever user you're authenticating as doesn't have edit permission on any posts. You might just want to change your request to
context=view, or elsewhere – via a plugin or functions.php – you can give them the capability.d0kt0r1 commentedon Feb 15, 2018
No. I got this fixed just now by doing as this comment is suggesting:
#35 (comment)
Not sure if this fix has any side effects though?